0
MySQL的更大的一個有效的MySQL結果資源輸出這個錯誤mysql_num_fields():提供的參數是不是比時間戳
您的SQL語法錯誤;檢查對應於你的MySQL服務器版本的使用權語法手冊近「=>‘0000-00-01在行’」 1
這裏是我的代碼
foreach($tables as $table)
{
//SELECT Everything from the table in use
$sql = "SELECT * FROM `".$table."` WHERE `timestamp` => '".$offline_time."'";
$result = mysql_query($sql);
echo mysql_error();
//Return Number of fields/colulms in the table.
$num_fields = mysql_num_fields($result);
你肯定1天在第0個月,第0年,是您想要檢索的日期? – 2012-01-16 12:13:44