I want to search the MySQL database comparing a column list to an array. How would I do this, possibly all within MySQL?
Here’s what I want to do in PHP:
<?php
$array = array("a", "b", "c", "d");
// 'c' doesn't exist in the database
$result = $this->mysqli->query("Query");
// Result should be array("a", "b", "d")
?>
How would I do this?
You can do this with the IN clause.