I dont have any problem with this code in my offline server (miniportal) but nothing seems to show when i use it here in this server!! It shows nothing but the link "Install" and nothing shows up when I click it.
Can anyone try looking at the code. I tried various techniques like uploading the database and all that but they dont work...any help?
Can anyone try looking at the code. I tried various techniques like uploading the database and all that but they dont work...any help?
| Code: |
|
<? require("config.php"); ?> <html> <body> <? if(!isset($install)){ echo"<a href=\"?install=1\">Install</a>"; } 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>There's an error<br>"; } else{ echo"Table <i>$table</i> created finally. congrats to myelf</a>"; } } ?> </body> </html> |
