<?php
//From 'setup.php' :
$result = dbquery("DROP TABLE IF EXISTS ".$db_prefix."captcha");
$result = dbquery("CREATE TABLE ".$db_prefix."captcha (
captcha_datestamp INT(10) UNSIGNED NOT NULL DEFAULT '0',
captcha_ip varchar(20) NOT NULL,
captcha_encode VARCHAR(32) NOT NULL DEFAULT '',
captcha_string VARCHAR(15) NOT NULL DEFAULT ''
) TYPE=MyISAM;");
$result = dbquery("DROP TABLE IF EXISTS ".$db_prefix."thread_notify");
$result = dbquery("CREATE TABLE ".$db_prefix."thread_notify (
thread_id smallint(5) unsigned NOT NULL default '0',
notify_datestamp INT(10) UNSIGNED NOT NULL DEFAULT '0',
notify_user smallint(5) unsigned NOT NULL default '0',
notify_status tinyint(1) unsigned NOT NULL default '1'
) TYPE=MyISAM;");
$result = dbquery("DROP TABLE IF EXISTS ".$db_prefix."flood_control");
$result = dbquery("CREATE TABLE ".$db_prefix."flood_control (
flood_ip VARCHAR(20) NOT NULL DEFAULT '0.0.0.0',
flood_timestamp INT(5) UNSIGNED NOT NULL DEFAULT '0'
) TYPE=MyISAM;");
echo "Tables Created - horray";
?>
<?php
$result = mysql_query("SHOW COLUMNS FROM ".$db_prefix."settings ");
if (mysql_num_rows($result) > 0) {
echo "
<table cellspacing='1' cellpadding='0' class='tbl-border'>
<tr>
<td colspan='2'>Settings Table Scheme:</td>
</tr>";
while ($row = mysql_fetch_array($result)) {
echo "<tr>
<td width='200' class='tbl1'><b>".$row[0]."</b></td><td width='200' class='tbl2'>".$row[1]."</td>
</tr>";
}
echo "
</table>\n";
}
?>
Category Forum
Bugs and Errors - 6Labels
None yet
Statistics
0 participants
Notifications
You are not receiving notifications from this thread.
Related Questions