I'm just trying to get database creation/linking/editing working in PHP and I get this error when trying to add a table. Code included. I've tried running this in W3Schools' editor and I also get a syntax error there. Sorry if it's something obvious.
$sql = "CREATE TABLE myguest
(
FirstName int,
Email varchar(255),
PNumber varchar(255),
Price varchar(255),
Desc varchar(255)
);";
"Error: CREATE TABLE myguest ( FirstName int, Email varchar(255), PNumber varchar(255), Price varchar(255), Desc varchar(255) );
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 'Desc varchar(255) )' at line 7"
I'm running MySQL 5.6.17 and PHP 5.5.12 on WAMP server.