Hi all,
If i have the following query:
$sql = "SELECT * FROM orders WHERE processed = 'N' AND order_date = '$current_date'";
how can i get it to select only those rows with the current date.
I'm currently using
$current_date = date('Ymd');
but the problem is that the date that is stored in the mySQL DB is in UNIX timestamp form. eg
2003-07-07 15:44:36
Can anyone tell me how to write the correct statement?
Cheers,
chrima