View Single Post
  #2 (permalink)  
Old 09-11-04
Rich Rich is offline
Super Moderator
 
Join Date: Aug 2003
Posts: 2,451
Thanks: 0
Thanked 0 Times in 0 Posts
Rich is an unknown quantity at this point
Just AND is right thing to use. Try: -
PHP Code:
$result mysql_query("SELECT * FROM table WHERE username='$username' AND otherthing='$othervar'")  or die(mysql_error()); 
That will at least output an error if part of the query is generating an error.
Reply With Quote