View Single Post
  #3 (permalink)  
Old 01-06-04, 05:13 PM
musicalmidget's Avatar
musicalmidget musicalmidget is offline
Newbie Coder
 
Join Date: Jun 2003
Location: United Kingdom
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
It's probably the {} marks in your query which are causing the problems. Try making this your query instead...

PHP Code:

$query "CREATE  TABLE news (

id int( 10  )  NOT  NULL  AUTO_INCREMENT ,
username char( 16  )  NOT  NULL , 
PASSWORD char( 16  )  NOT  NULL ,
title varchar( 100  )  NOT  NULL ,
text text NOT  NULL ,
date DATETIME NOT  NULL , 
PRIMARY  KEY ( id ))"

__________________
Has anyone seen my signature?
Reply With Quote