tibberous Posted December 19, 2007 Share Posted December 19, 2007 If you have two conditions in a where clause, how do you separate them? select id from `gametags` where `gameid`='$gameid', `tagid`='$tagid' Link to comment https://forums.phpfreaks.com/topic/82271-solved-super-easy-mysql-question/ Share on other sites More sharing options...
phpSensei Posted December 19, 2007 Share Posted December 19, 2007 use AND , OR/ select id from `gametags` where `gameid`='$gameid' AND `tagid`='$tagid' Link to comment https://forums.phpfreaks.com/topic/82271-solved-super-easy-mysql-question/#findComment-418187 Share on other sites More sharing options...
revraz Posted December 19, 2007 Share Posted December 19, 2007 Use AND or OR, depending on what you want it to do. Link to comment https://forums.phpfreaks.com/topic/82271-solved-super-easy-mysql-question/#findComment-418188 Share on other sites More sharing options...
tibberous Posted December 19, 2007 Author Share Posted December 19, 2007 Awesome, thanks. Link to comment https://forums.phpfreaks.com/topic/82271-solved-super-easy-mysql-question/#findComment-418189 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.