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! 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) 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
Archived
This topic is now archived and is closed to further replies.