Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 5 of 5

Thread: Install Help

  1. #1
    Join Date
    Feb 2005
    Posts
    1,411
    Tokens
    0

    Latest Awards:

    Default Install Help

    I am installing a members area and whenever i view the file to install it it says:

    **** error: parse error, unexpected T_STRING (file locations) in line 23. (The Line In Red)


    <?php

    include ("config.php");

    // connect to the mysql server
    $link = mysql_connect($server, $db_user, $db_pass)
    or die ("Could not connect to mysql because ".mysql_error());

    // select the database
    mysql_select_db($database)
    or die ("Could not select database because ".mysql_error());

    // create table on database
    $create = "create table $table (
    id smallint(5) NOT NULL auto_increment,
    username varchar(30) NOT NULL default '',
    password varchar(32) NOT NULL default '',
    fname varchar(30) NOT NULL default '',
    lname varchar(30) NOT NULL default '',
    email varchar(30) NOT NULL default '',
    members smallint(1) NOT NULL default '0',
    ADD admin smallint(1) NOT NULL default '0' ";
    PRIMARY KEY (id)";
    UNIQUE KEY username (username)
    );";




    mysql_query($create)
    or die ("Could not create tables because ".mysql_error());
    echo "Complete.";
    ?>

    Rep given.

    Thanks

    Matt
    I owe rep to:

    NintendoNews & Luckyrare

  2. #2
    Join Date
    May 2005
    Location
    Burgessville
    Posts
    806
    Tokens
    0

    Default

    is this a tutorial member system?
    if so wich one as then we may be able to help u?

    Originally Posted by bananasislegend
    this thread might be better than sex..

  3. #3
    Join Date
    Feb 2005
    Posts
    1,411
    Tokens
    0

    Latest Awards:

    Default

    Well.....i was sent it and was told it was a good member system. So i have done the config etc etc... then i go to install it and it says that.
    I owe rep to:

    NintendoNews & Luckyrare

  4. #4
    Join Date
    May 2005
    Location
    Burgessville
    Posts
    806
    Tokens
    0

    Default

    my suggestion is to add the table manual as files uselly dont work correct

    Originally Posted by bananasislegend
    this thread might be better than sex..

  5. #5
    Join Date
    Jun 2005
    Location
    Manchester
    Posts
    3,187
    Tokens
    0

    Latest Awards:

    Default

    It looks like a MySQL error.

    Have you checked the queries and tables etc in PHPMyAdmin?

    - Dan

Posting Permissions

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