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' Quote 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' Quote 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. Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.