Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Padekit :D

Parašė Žilvis· 2008 Kov. 24 16:03:10
#3

<?php
include "maincore.php";
include THEME."theme.php";
echo "<meta http-equiv='Content-Type' content='text/html; charset=windows-1257'>
<link rel='stylesheet' href='".THEME."styles.css' type='text/css'>\n";
$sql = dbquery("CREATE TABLE ".$db_prefix."user_ratings (
rated_id BIGINT(20) NOT NULL AUTO_INCREMENT ,
rate_user BIGINT(20) NOT NULL default '0',
rate_subject BIGINT(20) NOT NULL default '0',
rate_opt ENUM( '1', '2', '3', '4', '5', '6', '7', '8', '9', '10' ) NOT NULL ,
rate_date BIGINT(20) NOT NULL default '0',
rate_ip VARCHAR(255) NOT NULL default '0',
PRIMARY KEY (rated_id)
) TYPE = MyISAM;");
if ($sql) {
   echo "Lentelė sukurta, galite trinti sql.php failą";
} else {
   echo mysql_error();
}
?>




sql taip atrodo gal kas pades nes su mysql nelabai gaudaus o instalinti nera failo :D