Jump to content

Errors in query not sure where they are?


cameeob2003

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.