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 ('name@email.com', 'name2@email.com', 'name3@email.com')
My current SQL is like this:
$globalTestEmails = "('name@email.com', 'name2@email.com', 'name3@email.com')";
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?