...

View Full Version : Urgent Help me with this error



hackerzlab
09-03-2006, 12:10 PM
Whenever I click "Install Now >>", it takes me to "http://server.net/slambook/admin/install.php?install=1" and nothing ever shows up. It works fine with my offline server though.

Is there a way I could enter the sql query or whatever you called manually. thank you.


<?
require("config.php");
?>
<html>
<body>
<?
if(!isset($install)){
echo"<b><a href=\"?install=1\">Install now >></a></b>";
}
if($install == 1){
$query = "CREATE TABLE $t_posts (
ID int(7) unsigned DEFAULT '0' NOT NULL auto_increment,
name varchar(50) NOT NULL,
mail varchar(50) NOT NULL,
homepage varchar(50) NOT NULL,
place varchar(50) NOT NULL,
icq varchar(50) NOT NULL,
msn varchar(50) NOT NULL,
msg mediumtext NOT NULL,
date int(11) DEFAULT '0' NOT NULL,
PRIMARY KEY (ID)
)";
mysql_query($query,$db);

$test = mysql_query("SELECT * from $t_posts");
if(!$test){
echo"<b>An error occured...</b><br>check your config.php and your mysql settings!<br>";
}
else{
echo"Table <i>$table</i> created.<br><br>Go to your admin panel: <a href=\"index.php\">Click here</a>";
}
}
?>
</body>
</html>

GJay
09-03-2006, 07:24 PM
you want to be testing $_GET['install'] rather than $install.

I don't understand the second bit of your post.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum