>  $result = mysql_query('CREATE TABLE members (userid INT(25) NOT NULL
> AUTO_INCREMENT, first_name VARCHAR(30) NOT NULL, last_name VARCHAR(50) NOT
> NULL, email_address VARCHAR(255) NOT NULL, username VARCHAR(30) NOT NULL,
> password VARCHAR(30) NOT NULL, activated ENUM('0','1') DEFAULT '0' NOT
NULL,
> date_joined DATETIME NULL, last_login DATETIME NULL);')or die("Create
table
> Error: ".mysql_error());
---------------------------------------------------

- First of all verify ' (single quote) or " (double quote) here... this
should solve the problem

BUT
- Another problem will crop 'coz u didnot define a key...

Read
-----
PRIMARY KEY (index_col_name,...)



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to