Hey Guys -- I am finally getting my hands dirty with PHP / MySQL :evilgrin:
Here's a table I created for one of the first scripts I plan to put in production use. Was wondering if you guys could take a look and tell me if it is good or bad and what am I missing in it?
CREATE TABLE userdata (
firstname VARCHAR(64) NOT NULL default '',
lastname VARCHAR(64) NOT NULL default '',
dob SMALLINT NOT NULL,
mob SMALLINT NOT NULL,
yob SMALLINT NOT NULL,
email VARCHAR(128) NOT NULL,
active ENUM('0','1'),
gender ENUM('m','f'),
regdate DATETIME NOT NULL default '0000-00-00 00:00:00',
ipaddress VARCHAR(15) NOT NULL default '',
refby VARCHAR(32) NOT NULL default '',
campaign VARCHAR(32) NOT NULL default '',
keywords VARCHAR(32) NOT NULL default '',
id INT AUTO_INCREMENT PRIMARY
);
Ta!