21-01-2005, 16:57
|
|
|
|
חבר מתאריך: 09.04.02
הודעות: 8,000
|
|
שגיאת תחביר ב-MySQL
יש לי את קובץ ה-PHP הזה:
קוד PHP:
<?php include "mysql_connect.php"; $query = "DROP TABLE IF EXISTS news; CREATE TABLE news ( id int(3) unsigned zerofill NOT NULL default '000', topic varchar(30) default NULL, body varchar(500) default NULL, PRIMARY KEY (id) );"; $result=@mysql_query($query) or die('Query failed: ' . mysql_error()); ?>
והוא מציג לי את השגיאה הזו:
ציטוט:
Query failed: 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 '; CREATE TABLE news ( id int(3) unsigned zerofill NOT NU
|
מה יכולה להיות הבעיה?
|