mkabwilliams Posted February 23, 2007 Share Posted February 23, 2007 Hi I'm trying to add tables to my database using phpmyadmin on my mysql but i keep getting this error #1064 - 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 ')' at line 13 Here is the SQL im trying to run CREATE TABLE `xoops_users` ( `pn_thold` tinyint( 1 ) NOT NULL default '0', `pn_noscore` tinyint( 1 ) NOT NULL default '0', `pn_ublockon` tinyint( 1 ) NOT NULL default '0', `pn_ublock` text COLLATE latin1_general_ci NOT NULL , `pn_theme` varchar( 255 ) COLLATE latin1_general_ci NOT NULL default '', `pn_commentmax` int( 11 ) NOT NULL default '4096', `pn_counter` int( 11 ) NOT NULL default '0', `pn_timezone_offset` float( 3, 1 ) NOT NULL default '0.0', `pn_femail` varchar( 60 ) COLLATE latin1_general_ci NOT NULL default '', `pn_user_theme` tinyint( 3 ) default NULL , `pn_storynum` tinyint( 4 ) NOT NULL default '10', ) Quote Link to comment https://forums.phpfreaks.com/topic/39856-adding-fields-to-tables/ Share on other sites More sharing options...
Yesideez Posted February 24, 2007 Share Posted February 24, 2007 Try removing the comma at the end of line 13. Quote Link to comment https://forums.phpfreaks.com/topic/39856-adding-fields-to-tables/#findComment-192641 Share on other sites More sharing options...
fenway Posted February 26, 2007 Share Posted February 26, 2007 That is, the trailing comma before the close paren. Quote Link to comment https://forums.phpfreaks.com/topic/39856-adding-fields-to-tables/#findComment-194439 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.