spaceman12 Posted January 1, 2011 Share Posted January 1, 2011 $loc="SELECT * FROM table WHERE username='a', id='1' AND uin='123'"; $get=myspl_query($loc) or die(mysql_error()); Please somone tell me the right command as how to use multiple AND in mysql query. Thanks Link to comment https://forums.phpfreaks.com/topic/223135-need-help-in-mysql-query/ Share on other sites More sharing options...
Pikachu2000 Posted January 1, 2011 Share Posted January 1, 2011 WHERE `field1` = 'value1' AND `field2` = 'value2` AND `field3` = 'value3', etcetera. Link to comment https://forums.phpfreaks.com/topic/223135-need-help-in-mysql-query/#findComment-1153543 Share on other sites More sharing options...
spaceman12 Posted January 1, 2011 Author Share Posted January 1, 2011 thank you so much Link to comment https://forums.phpfreaks.com/topic/223135-need-help-in-mysql-query/#findComment-1153580 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.