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
  1. #1
    Join Date
    Oct 2007
    Location
    Luton, England
    Posts
    1,548
    Tokens
    388
    Habbo
    DeejayMachoo

    Latest Awards:

    Default $query = mysql_query("INSERT INTO `mattx_site`.`forums` (name,category,desc)...

    Hi like
    Code:
    $query = mysql_query("INSERT INTO `mattx_site`.`forums` (name,category,desc) VALUES ('$name','$id','$desc')");
    i see no error with this but its not inserting into mattx_site.forums any ideas?


  2. #2
    Join Date
    Jan 2007
    Location
    Wales
    Posts
    2,432
    Tokens
    141

    Latest Awards:

    Default

    I'm confused :S Is your database called mattx_site.forums ? With the . ?

    - Vince.
    Free Online Games And Videos:
    http://www.vincesgames.com



  3. #3
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    Try..
    Code:
    $query = mysql_query("INSERT INTO `forums` (name,category,desc) VALUES ('$name','$id','$desc')");
    I dont know where the mattx_site comes from.. Is that the database name or something?

    Cos if your connected to the database, then it should automatically know what database your looking in.
    Coming and going...
    Highers are getting the better of me

  4. #4
    Join Date
    Oct 2007
    Location
    Luton, England
    Posts
    1,548
    Tokens
    388
    Habbo
    DeejayMachoo

    Latest Awards:

    Default

    Quote Originally Posted by ThisNameWillDo! View Post
    I'm confused :S Is your database called mattx_site.forums ? With the . ?

    - Vince.
    nope the db is

    mattx_site

    and the table is forums

    Quote Originally Posted by MrCraig View Post
    Try..
    Code:
    $query = mysql_query("INSERT INTO `forums` (name,category,desc) VALUES ('$name','$id','$desc')");
    I dont know where the mattx_site comes from.. Is that the database name or something?

    Cos if your connected to the database, then it should automatically know what database your looking in.
    Connecting to multiple db's


  5. #5
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    try running the query in phpmyadmin and it should tell you any errors that the script may have, as, as far as i can see, theres nothing wrong with code.

    Or you could always get round it by doing

    PHP Code:
    $mysql_connect(Database 1);
    /*
    Queries
    */
    mysql_close($1);
    $
    mysql_connect(Database 2);
    /*
    Queries
    */
    mysql_close($2); 
    Last edited by MrCraig; 27-12-2007 at 09:34 PM.
    Coming and going...
    Highers are getting the better of me

Posting Permissions

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