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 4 of 4
  1. #1
    Join Date
    Jun 2005
    Location
    Manchester
    Posts
    3,187
    Tokens
    0

    Latest Awards:

    Default In need of PHP help

    Hey there guys.

    I'll be quick and get too the problem.

    Well i've been running over the scripts on my computer. And i've come across one that I really like. It's a tutorial system where you can add your own tutorials etc. I've styled it with CSS so it looks not too bad

    Anyway heres the problem, i'm getting a parse error and i'm not sure if my connection script is right.

    I've hidden my pass so nobody can see it. So here it is.

    PHP Code:
    <?php

    $dbhost
    ='localhost';
    $dbusername='dan_dan';
    $dbuserpass='*****';
    $dbname='tutsystem';


    mysql_connect ($dbhost$dbusername$dbuserpass);

    if (!
    mysql_select_db($dbname)) die(mysql_error());

    $query1 "INSERT INTO tutorials (date,image,title,description,link,category) VALUES (now(),'".$image."','".$title."','".$description."','".$link."','".$category."')";
    mysql_query($query1)or die(mysql_error());
    ?>
    +Rep for anyone that helps in a good way, and deffo rep too anyone who solves it.

    - Dan

  2. #2
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    I may be wrong but,


    PHP Code:
    $dbhost='localhost';
    $dbusername='dan_dan';
    $dbuserpass='*****';
    $dbname='dan_tutsystem'

    Maybe that will work...

  3. #3
    Join Date
    Nov 2005
    Posts
    807
    Tokens
    1,335

    Latest Awards:

    Default

    Whats the error?

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

    Latest Awards:

    Default

    Don't worry.

    I've fixed it. It was a parse error, just was coded badly

    Thread closed

    - 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
  •