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 Quote Link to comment 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).')' ); Quote Link to comment 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.