$insert = mysql_query("
INSERT into analytics.pagesummary (Date, avg_load_time, min_load_time, max_load_time)
VALUES ($date,$string_avg, $string_min,$string_max)" )
or die('PROBLEM'.mysql_error());
Actual date values = '2013-02-07', '2013-02-08', '2013-02-09'
Date values in the database after the query is fired = '2004', '2003', '2002'
Other values being displayed of avg_load_time, min_load_time & max_load_time are correct.
Where are we going wrong. Any help would be appreciated.
mysql_*functions in new code. They are no longer maintained and are officially deprecated. See the red box? Learn about prepared statements instead, and use PDO or MySQLi - this article will help you decide which. If you choose PDO, here is a good tutorial.