I'm new to MySQLi and prepared statements and am having trouble with a certain part of my SELECT statement.
I have a string of email addresses that I want to work like this:
NOT IN ('[email protected]', '[email protected]', '[email protected]')
My current SQL is like this:
$globalTestEmails = "('[email protected]', '[email protected]', '[email protected]')";
NOT IN " . $globalTestEmails . " AND
So how do I go about changing that in MySQLi?
I guess I need to do:
NOT IN ?
But how do I set my $globalTestEmail variable? It won't like the brackets or commas right?