hi, i am using the following code to retrieve information for todays date:
<?php
$query = "select * from CUSTOMER where DATE (date) = DATE(NOW())";
$result = @mysql_query($query, $connection)
or die ("Unable to perform query.<br />$query<br/>");
$num_rows = mysql_num_rows($result);
echo "$num_rows";
?>
i cant seem to find any code to extract information from yesterdays date. can you help please?