date不是mysql的函数$d = date("y-m-d,H:i:s",time());
mysql_query("isert into (test) values ('$d')");既然时间由time()决定,那么只需
isert into (test) values (now())