cameeob2003 Posted June 24, 2006 Share Posted June 24, 2006 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.[code]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));[/code] Quote Link to comment https://forums.phpfreaks.com/topic/12792-trouble-getting-text-install-format-correct/ Share on other sites More sharing options...
fenway Posted June 24, 2006 Share Posted June 24, 2006 [!--quoteo(post=387394:date=Jun 24 2006, 03:23 AM:name=cameeob2003)--][div class=\'quotetop\']QUOTE(cameeob2003 @ Jun 24 2006, 03:23 AM) [snapback]387394[/snapback][/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.[code]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));[/code][/quote]What version, what errors? Also, default isn't spelled correctly in your last column. Quote Link to comment https://forums.phpfreaks.com/topic/12792-trouble-getting-text-install-format-correct/#findComment-49020 Share on other sites More sharing options...
cameeob2003 Posted July 4, 2006 Author Share Posted July 4, 2006 I fixed it but thank you :) Quote Link to comment https://forums.phpfreaks.com/topic/12792-trouble-getting-text-install-format-correct/#findComment-52801 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.