<?php $query2 = "CREATE TABLE IF NOT EXISTS customers ( customers_custnum INT(6) NOT NULL AUTO INCREMENT, customers_firstname VARCHAR(15) NOT NULL, customers_lastname VARCHAR(15) NOT NULL, customers_add1 VARCHAR (50) NOT NULL, customers_add2 VARCHAR (50), customers_city VARCHAR (50) NOT NULL, customers_state CHAR (2) NOT NULL, customers_zip CHAR (5) NOT NULL, customers_phone CHAR (12) NOT NULL, customers_fax CHAR (12), customers_email VARCHAR (50) NOT NULL, PRIMARY KEY (customers_custnum))"; ?>
Ktory wywala taki oto błąd :
Cytat
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 'AUTO INCREMENT, customers_firstname VARCHAR(15) NOT NULL, customers_lastna' at line 2
Tylko ze ja nie widze tam zadnego bledu......
gdy uzywam funkcji error_get_last to pokazuje mi sie tylko 1.
Jak sobei z tym poradzic ?