Jump to content

Archived

This topic is now archived and is closed to further replies.

cameeob2003

Errors in query not sure where they are?

Recommended Posts

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]

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
http://dev.mysql.com/doc/refman/4.1/en/create-table.html

Share this post


Link to post
Share on other sites
[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?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.