mysql error...need help

Discussion in 'MySQL' started by anturj, Oct 24, 2012.

  1. #1
    hello ,
    i create a script for messaging system and that url is look like http://localhost/message/view_message.php?frm=antu here the url is okay but if i submit this url like
    http://localhost/message/view_message.php?frm=antu' << so its show me an error that is mysql error how can i solve this probem .
    please tell me any idea :)
     
    anturj, Oct 24, 2012 IP
  2. matt_62

    matt_62 Prominent Member

    Messages:
    1,827
    Likes Received:
    515
    Best Answers:
    14
    Trophy Points:
    350
    #2
    i need a little more information then just this.

    what is the mysql error?

    have you made sure that there is actual data in the specific table / field within the database that you are getting the information from?
    are you using xampp / mysql yog to create and test it?
     
    matt_62, Oct 24, 2012 IP
  3. anturj

    anturj Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    the error/warning is Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in F:\xampp\htdocs\css\messages.php on line 406 and i am using xampp @matt bro
     
    anturj, Oct 25, 2012 IP
  4. jadexe

    jadexe Member

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    26
    #4
    That means that mysql_query() returned false, that may have happened because you hadn't actually connected to the mysql server. You should post some of your code(the connection and query part).
     
    jadexe, Oct 26, 2012 IP
  5. anturj

    anturj Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    hmmm okay bro thank you for your kind of help ....
     
    anturj, Oct 26, 2012 IP