Parašė migle· 2009 Lap. 23 20:11:27
#12
Šitą?:
$result = dbquery("DROP TABLE IF EXISTS ".$db_prefix."comments");
$result = dbquery("CREATE TABLE ".$db_prefix."comments (
comment_id SMALLINT(5) UNSIGNED NOT NULL AUTO_INCREMENT,
comment_item_id SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
comment_type CHAR(2) NOT NULL DEFAULT '',
comment_name VARCHAR(50) NOT NULL DEFAULT '',
comment_message TEXT NOT NULL,
comment_smileys tinyint(1) unsigned NOT NULL default '1',
comment_datestamp INT(10) UNSIGNED NOT NULL DEFAULT '0',
comment_ip VARCHAR(20) NOT NULL DEFAULT '0.0.0.0',
PRIMARY KEY (comment_id)
) TYPE=MyISAM;");
Redagavo migle· 2009 Lap. 24 15:11:06