'OR' logic in mySQL query

From: Date: Sun, 17 Apr 2005 20:04:47 +0000
Subject: 'OR' logic in mySQL query
Groups: php.db 
Request: Send a blank email to php-db+get-39211@lists.php.net to get a copy of this message
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

« previous php.db (#39211) next »