mysql_query ("creat table $tablename (
   time date; <== 这里应该是逗号
   total int)");