A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: mySQL-query can't handle 'AND' statement (confused)

  1. #1
    Senior Member
    Join Date
    Oct 2008

    mySQL-query can't handle 'AND' statement (confused)

    Hi. I got a one-line brainer, that i really dont understand.

    PHP Code:
    $auth mysql_query("SELECT * FROM iww_users WHERE id='$id'"); 
    This works perfectly, and returns all information.

    PHP Code:
    $auth mysql_query("SELECT * FROM iww_users WHERE id='$id' AND session='$session'"); 
    However, this doesn't return anything. I've used the exact same code before, so I really have no idea why it wouldn't :S

  2. #2
    Registered User
    Join Date
    Feb 2001

    you should probably double-check that $session contains what you expect


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center