I have an array:
Array (  => 122431206  => 122431200  => 210998761  => 122431203 )
Now, I want to write a select query that would not select a row when a particular field's value equals any of those in the array above:
($ssna is the array)
mysql_query("SELECT * FROM `_population` WHERE `school_id`='$sch' OR `work_id`='$wor' OR `residence_id`='$res' HAVING `ssn`!='$ssna' ORDER BY `lname` ASC") or die(mysql_error());
The above query gives results which include rows containing the values in the array...
how can I make the query not select the rows corresponding to the array values?