cameeob2003 Posted July 1, 2006 Share Posted July 1, 2006 Im trying to execute the following and i keep getting the following error:[quote] MySQL said: Documentation#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 '='nopic.jpg'",team_name varchar(32) NOT NULL default",team_ [/quote]here is the script im trying to execute[code]CREATE TABLE users (userid int(25) NOT NULL auto_increment,first_name varchar(25) NOT NULL default",last_name varchar(25) NOT NULL default",username varchar(25) NOT NULL default",password varchar(255) NOT NULL default",encryptpass varchar(255) NOT NULL default",email varchar(255) NOT NULL default",location text NOT NULL,steamid varchar(15) NOT NULL default",handle varchar(25) NOT NULL default",bio text NOT NULL,photo varchar(255) NOT NULL default='nopic.jpg'",team_name varchar(32) NOT NULL default",team_tag varchar(15) NOT NULL default",access text NOT NULL default='0'",webs varchar(255) NOT NULL default='http://'",sign_update datetime NOT NULL default '0000-00-00 00:00:00',activated enum('0','1') default NULL,[/code] Quote Link to comment Share on other sites More sharing options...
Barand Posted July 1, 2006 Share Posted July 1, 2006 Try removing the "=" Quote Link to comment Share on other sites More sharing options...
cameeob2003 Posted July 2, 2006 Author Share Posted July 2, 2006 Thx that worked. I have a question though > why is it that you have to take away the "=" in order for it to proccess the form? Why do the "=" cause errors? Quote Link to comment Share on other sites More sharing options...
Barand Posted July 2, 2006 Share Posted July 2, 2006 http://dev.mysql.com/doc/refman/4.1/en/create-table.html Quote Link to comment Share on other sites More sharing options...
fenway Posted July 3, 2006 Share Posted July 3, 2006 [quote author=cameeob2003 link=topic=99102.msg390393#msg390393 date=1151826546]Thx that worked. I have a question though > why is it that you have to take away the "=" in order for it to proccess the form? Why do the "=" cause errors?[/quote]What does this have to do with processing the form? Quote Link to comment 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.