Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Feb 2006
    Posts
    110
    Thanks
    23
    Thanked 0 Times in 0 Posts

    Urgent Help me with this error

    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.

    PHP Code:
    <?
    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>

  • #2
    Senior Coder
    Join Date
    Sep 2005
    Posts
    1,791
    Thanks
    5
    Thanked 36 Times in 35 Posts
    you want to be testing $_GET['install'] rather than $install.

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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •