I keep getting error in my code : "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 '$sql = "CREATE TABLE Kodu( ID INT NOT NULL PRIMARY KEY AUTO_INCREMENT, ' at line 1"
I even tried this code in SQLfiddle and it gave me the same error. Can somebody please help me spot the error? thanks
$sql = "CREATE TABLE Kodu(
ID INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
Dateoforder DATE NOT NULL,
Contract VARCHAR(10),
Order INT NOT NULL,
Office VARCHAR(30) NOT NULL,
Ship VARCHAR(100) NOT NULL
)";