$query = "INSERT INTO $stats_table_name (name, name_ID, anz_aufruf) VALUES ($plan_name, $plan_nr, $anz)"; echo "<br />".$query."<br />"; if (!mysql_query($query) && !$error) { die (mysql_error()); }
INSERT INTO不工作的最新的XAMPP
MySQL的錯誤告訴我:
INSERT INTO 'p_stats' ('name', 'name_ID', 'anz_aufruf') VALUES ('Laptop 1', '1', '95')
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''p_stats' ('name', 'name_ID', 'anz_aufruf') VALUES ('Laptop 1', '1', '95')' at line 1
哪裏是代碼錯在這裏?
謝謝!完美的工作! –