Try this

WHERE date_field != $date_1 OR date_field != $date_2 OR date_field !=

-----Original Message-----
From: Mike Baerwolf [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 24, 2003 6:46 PM
Subject: mysql field comparison to multiple variables


I trying to put together a sql statement that will pull records based on

  a date field.  I can't figure out how to compare the date field to 
multiple php variables. Something like this,

WHERE date_field != $date_1 OR $date_2 OR $date_3 etc. etc.

Thanks for the help.


PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to