**Wat mijn script moet doen:** I got a database with items and another database with mixes between mutiple items. Visitors select the items they like and the script would look into the database to see if there are any mixes between those items avaliable.
**Wat ik geprobeerd heb & het probleem:**

Ik heb zelf niet veel codes, want ik wist nieteens hoe ik de "second database" moet instellen.
Dit is de code die ik tot nu toe heb:
// 1. make array from the input
$input_array = array(2, 6, 133, 75, 12, 9, 3, 52, 93, 23, 1);
// 2. get all rows where item is in the array
$input_array = join(', ', $ids);
$query = "SELECT * FROM mix_database WHERE item_id IN ($input_array)";
// 3. compare the amount of mix_id's in the query above with the amount of mix_id's in mix_database
Stap drie kan dus niet zo gedaan worden doordat er meerdere items gebruikt kunnen worden bij verschillende mixen.
Hoop dat ik het duidelijk genoeg heb opgeschreven.
Kan iemand me helpen met zoeken door de database?