I'm trying to insert a query into mysql using php, but to have restrictions.
$sql_insert = "
INSERT IGNORE
into `email`
(`message`,`useremail`,`senderemail`)
VALUES
('$emailmessage','$email_address','$fromaddress')
WHERE
";
$fromaddress is the value I want to make the constraints.
Here's an example
"Zazzle" <sender-1234@zazzle.com>
Don't insert if sender-1234@zazzle.com
is in the senderemail field
Don't insert if "Zazzle"
is in the field and if @zazzle.com
is also in the field.