Jump to content


Photo

Trouble Getting Text Install Format Correct


  • Please log in to reply
2 replies to this topic

#1 cameeob2003

cameeob2003
  • Members
  • PipPipPip
  • Advanced Member
  • 79 posts

Posted 24 June 2006 - 07:23 AM

I am trying to get the following to create a database in my mysql database. But when I try to execute it via PHPMYADMIN I get errors and not all of my tables are created I was wondering if anyone could help me correct this problem. I am new to the entire MySQL and PHP coding but trying to learn.

CREATE TABLE users (
id int NOT NULL auto_increment,
username varchar(20) NOT NULL default ",
userlevel varchar(15) NOT NULL default ",
password varchar(32) binary NOT NULL default ",
email char(255) NOT NULL default ",
secretq char(255) NOT NULL default ",
secreta char(255) NOT NULL default ",
ip char(15) NOT NULL default ",
handle char(17) NOT NULL default ",
aboutuser char(255) NOT NULL default ",
gamename char(30) NOT NULL default ",
teamname char(30) NOT NULL default ",
hardware char(255) NOT NULL default ",
cookie char(32) binary NOT NULL default ",
session char(32) binary NOT NULL deafualt ",
PRIMARY KEY (id),
UNIQUE KEY username (username)
);


#2 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 24 June 2006 - 07:57 AM

[!--quoteo(post=387394:date=Jun 24 2006, 03:23 AM:name=cameeob2003)--][div class=\'quotetop\']QUOTE(cameeob2003 @ Jun 24 2006, 03:23 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
I am trying to get the following to create a database in my mysql database. But when I try to execute it via PHPMYADMIN I get errors and not all of my tables are created I was wondering if anyone could help me correct this problem. I am new to the entire MySQL and PHP coding but trying to learn.

CREATE TABLE users (
id int NOT NULL auto_increment,
username varchar(20) NOT NULL default ",
userlevel varchar(15) NOT NULL default ",
password varchar(32) binary NOT NULL default ",
email char(255) NOT NULL default ",
secretq char(255) NOT NULL default ",
secreta char(255) NOT NULL default ",
ip char(15) NOT NULL default ",
handle char(17) NOT NULL default ",
aboutuser char(255) NOT NULL default ",
gamename char(30) NOT NULL default ",
teamname char(30) NOT NULL default ",
hardware char(255) NOT NULL default ",
cookie char(32) binary NOT NULL default ",
session char(32) binary NOT NULL deafualt ",
PRIMARY KEY (id),
UNIQUE KEY username (username)
);
[/quote]
What version, what errors? Also, default isn't spelled correctly in your last column.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#3 cameeob2003

cameeob2003
  • Members
  • PipPipPip
  • Advanced Member
  • 79 posts

Posted 04 July 2006 - 08:32 AM

I fixed it but thank you :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users