therealwesfoster Posted March 5, 2008 Share Posted March 5, 2008 I have an array $a_movie = array(56,78,79,66,57,58,60,59,75,61,62,76,63,80); I'm needing to select all of the entries from the database that have these ID numbers. How would i do that? SELECT * FROM table WHERE id=.... Wes Link to comment https://forums.phpfreaks.com/topic/94512-where-id-is-in-array/ Share on other sites More sharing options...
kenchucky Posted March 5, 2008 Share Posted March 5, 2008 mysql query function goes here( 'select * from table where id in ('.implode(',',$a_movie).')' ); Link to comment https://forums.phpfreaks.com/topic/94512-where-id-is-in-array/#findComment-484159 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.