Hi All,
I have just transferred a site to a new host, this included a MySQL database which seems to have transferred fine, but now I see I have a problem...
The site should display entries from the database where the Date value is more that today's date, but for some reason, All the entries are being displayed.
I thought the Date value must have been reset to today's date when I uploaded the database, but everything seems as it should be.
The query I'm using to display these entries is this:
//Today
$today = date('Y-m-d H:i:s' );
//SQL Query
$query = "SELECT *,
DATE_FORMAT(Date,'%a, %D %M, %Y') AS readdate,
DATE_FORMAT(Date,'%H:%i') AS time FROM Shows
WHERE Date >= \"%$today%\"
ORDER BY Date ASC";
It worked fine on the old host. The only difference between this host and the old one is the version of MySQL:
Old Host: MySQL version 4.0.27-standard
New Host: MySQL version 4.1.10a
Does anyone know what could be causing all the entries to read out?
Thanks.