gibigbig Posted December 16, 2010 Share Posted December 16, 2010 I have an array and i'd like to make a query that gets all the records if the id is in this array WITHOUT using more than 1 query. basically this SELECT * FROM table_name WHERE episode_id IS IN_ARRAY('$array') i know the above code is wrong but its the best way i can explain it Link to comment https://forums.phpfreaks.com/topic/221819-something-id-like-to-know/ Share on other sites More sharing options...
litebearer Posted December 16, 2010 Share Posted December 16, 2010 Might look here http://stackoverflow.com/questions/907806/php-mysql-using-an-array-in-where-clause Link to comment https://forums.phpfreaks.com/topic/221819-something-id-like-to-know/#findComment-1147915 Share on other sites More sharing options...
gibigbig Posted December 16, 2010 Author Share Posted December 16, 2010 never mind, solved here http://www.webdeveloper.com/forum/showpost.php?s=86e3796b8262f011819e4dfe353cd371&p=860802&postcount=4 many thanks for the quick feedback though Link to comment https://forums.phpfreaks.com/topic/221819-something-id-like-to-know/#findComment-1147916 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.