Re: Subject: mysql field comparison to multiple variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 11:24 26/10/2003 +0000, you wrote:
From: Mike Baerwolf <mike@wkla.com>
Subject: mysql field comparison to multiple variables

Hello,

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.

WHERE date_field NOT IN ($date_1,$date_2,$date3)




Thanks for the help.

Mike

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux