CSkovholm Posted April 25, 2010 Share Posted April 25, 2010 Hey guys I was wondering, how it is possible to request multiple ids from a sql query? I have an array, that contains.. lets say, 3 different ids. 20, 12 and 3 for example. I now want to make a sql query, that retrieves the rows from the table from the 3 given ids.. How is this possible? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/199685-requesting-multiple-ids-from-a-sql-query/ Share on other sites More sharing options...
Mchl Posted April 25, 2010 Share Posted April 25, 2010 WHERE id IN (20,12,3) Quote Link to comment https://forums.phpfreaks.com/topic/199685-requesting-multiple-ids-from-a-sql-query/#findComment-1048046 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.