I am getting an error when using the following code:
$id_array = array('4', '6', '10', '12', '13');
$result = mysql_query("SELECT course_id FROM primary_courses WHERE course_id NOT IN ($id_array)");
It returns an invalid result resource and I am sure its something to do with the NOT IN ($id_array)
I must have some syntax or something wrong.
When I use NOT IN ('$id_array') I dont get an error but then it just selects everything from the database and seems to disregard the list totally.
Help me out please!
thanks,
Kevin