Hi, I have an array named $ex_array. I want to search the database and find those ids that are different from the values in $ex_array. I use this but didn't work $sql = "SELECT product_id FROM products WHERE product_id <> '$ex_array' " ; Thanks for any help !!!!