xcandiottix Posted April 1, 2010 Share Posted April 1, 2010 $sql = "SELECT * FROM uploads WHERE db_Id <= $previousID & db_Validate = $var01 ORDER BY db_Id DESC LIMIT 1"; except, it doesn't process ... & db_Validate = $var01 ... in my ... $result = mysql_query($sql) How would I say WHERE db_Id <= $previousID ***and also that*** db_Validate = $var01 thanks Link to comment https://forums.phpfreaks.com/topic/197201-probably-an-easy-one/ Share on other sites More sharing options...
trq Posted April 1, 2010 Share Posted April 1, 2010 $sql = "SELECT * FROM uploads WHERE db_Id <= $previousID && db_Validate = $var01 ORDER BY db_Id DESC LIMIT 1"; Link to comment https://forums.phpfreaks.com/topic/197201-probably-an-easy-one/#findComment-1035101 Share on other sites More sharing options...
xcandiottix Posted April 1, 2010 Author Share Posted April 1, 2010 =( I tried & at first figuring that would work... i was only 1 away. you rock! Thanks. Link to comment https://forums.phpfreaks.com/topic/197201-probably-an-easy-one/#findComment-1035102 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.