1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Database problem with php coding

Discussion in 'Hire a Freelancer' started by reeze15, Nov 29, 2014.

  1. reeze15

    reeze15 Registered Member

    Joined:
    Oct 25, 2012
    Messages:
    58
    Likes Received:
    2
    Occupation:
    SEO clerk
    Location:
    In front of the computer
    HI there,

    I have an order system that used by my staff to record all the orders and sales.
    Right now its having a problem.
    Sorry I dont know whats the real problem.
    It might be on the database.

    "Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in /home/tempah/public_html/"
    "Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home"

    If you think you can fix this, please name me your price by pm me now.

    TQ
    Reeze
     
  2. Repulsor

    Repulsor Power Member

    Joined:
    Jun 11, 2013
    Messages:
    712
    Likes Received:
    267
    Location:
    PHP Scripting ;)
    I can probably fix that. Second error would go away automatically after fixing the first one since its a header already sent warning.

    Get to me on skype. I need to go through the codes to fix it up. My skype id is repulsorbhw
     
  3. james222

    james222 Newbie

    Joined:
    Aug 10, 2014
    Messages:
    26
    Likes Received:
    4
    Location:
    Canada, eh!
    For the first error, that means that there is an error in your query. At the end of your mysql connection add or die(mysql_error());. Add that after the query also.
     
  4. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    950
    Likes Received:
    662
    Occupation:
    Web/Bot Developer
    Easy fix. Hit me up on Skype: i_m_mrblue.

    Cheers!
     
  5. reeze15

    reeze15 Registered Member

    Joined:
    Oct 25, 2012
    Messages:
    58
    Likes Received:
    2
    Occupation:
    SEO clerk
    Location:
    In front of the computer
    Thanks guys. This problem solved. tqsm =)