'OR' logic in mySQL query

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

 



Am I able to use the OR logic in mySQL queries?

$query = "SELECT * FROM table WHERE date_received LIKE '$todays_date' OR
'$yesterdays_date' ORDER BY prayer_request_reference ASC";

In this above example will the " OR '$yesterdays_date' " work?

In reality I am wanting to preview new entries to the database within the
past 2 days

Ron

-- 
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