View Single Post
  Pocketx
 
 
Pocketx's Avatar
Registered User
 
Posts: 966
 
Reg: Jul 31 2002
 
ID: 1634
 
RP: 0
 
NBA 2k Series
Eminem
8 Mile, Rush Hour Series
Dreamcast
     
 
Default  Help with mySQL tables
01.12.03, 19:21:16
  Post #1 (permalink)
 
     

Erm, im making my users system for my site but i got errors while working with these tables:

PHP Code:
CREATE TABLE session 
id int(14NOT NULL auto_increment
sessionid varchar(255NOT NULL default ''
username varchar(20NOT NULL default ''
auth int(14NOT NULL default '0'
userid int(14NOT NULL default '0'
firstname varchar(50NOT NULL default ''
lastname varchar(50NOT NULL default ''
PRIMARY KEY (id
); 
and

PHP Code:
CREATE TABLE `comments` ( 
`
idINT(14NOT NULL AUTO_INCREMENT PRIMARY KEY
`
newsidINT NOT NULL 
`useridINT(14NOT NULL
`
commentTEXT NOT NULL
`
dateTIMESTAMP NOT NULL 
); 
What am i doing wrong?
  Pocketx is offline
View Pocketxs Profile! Find more posts by Pocketx! Visit Pocketxs Homepage!