home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2005 April
/
PCWorld_2005-04_cd.bin
/
akce
/
web
/
unitednuke
/
unitednuke.exe
/
upgrades
/
PHP-Nuke
/
upgrade2-25.php
< prev
next >
Wrap
PHP Script
|
2003-03-17
|
931b
|
23 lines
<?php
# File to upgrade PHP-Nuke from 2.0x to 2.5
# After use this, you can delete it
$host = "localhost";
$database = "nuke";
$username = "root";
$password = "";
mysql_connect($host, $username, $password);
@mysql_select_db($database);
//*********************************************
$result = mysql_query("CREATE TABLE pollcomments (tid int(11) DEFAULT '0' NOT NULL auto_increment, pid int(11) DEFAULT '0', pollID int(11) DEFAULT '0', date datetime, name varchar(60) DEFAULT '' NOT NULL, email varchar(60), url varchar(60), host_name varchar(60), subject varchar(60) DEFAULT '' NOT NULL, comment text NOT NULL, score tinyint(4) DEFAULT '0' NOT NULL, reason tinyint(4) DEFAULT '0' NOT NULL, PRIMARY KEY (tid))");
if (!$result) {
echo "Creation of pollcomments table failed!<br>" .mysql_errno(). ": ".mysql_error(). "<br>";
return;
}
echo "PHP-Nuke Tables Updated, Ok...";
?>