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!


Page 3 of 3 FirstFirst 123
Results 21 to 30 of 30
  1. #21

    Default

    Habbo is boring, but Habbo Fansites develops your first knowledge of coding

  2. #22
    Join Date
    May 2007
    Location
    Nebo, NC, USA
    Posts
    2,517
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by mapowell1234 View Post
    Habbo is boring, but Habbo Fansites develops your first knowledge of coding
    I agree with that in a point.

    I started out with HabboNewsie (HTML) then went on to PHP, now knowing more about it then ever.

  3. #23

    Default

    I just cant get a grasp of PHP

  4. #24
    Join Date
    May 2007
    Location
    Nebo, NC, USA
    Posts
    2,517
    Tokens
    0

    Latest Awards:

    Default

    Its not that hard:

    PHP Code:
    <?php
    $username 
    "Dentafrice,";
    if(
    $username == "Dentafrice,") {
    echo 
    "Your username is Dentafrice,!";
    }else{
    echo 
    "You fail at life.";
    }
    ?>

  5. #25

    Default

    I know that, i mean more advanced PHP

  6. #26
    Join Date
    May 2007
    Location
    Nebo, NC, USA
    Posts
    2,517
    Tokens
    0

    Latest Awards:

    Default

    Like....?

  7. #27

    Default

    MySQL e.t.c

  8. #28
    Join Date
    Jul 2007
    Location
    Swindon
    Posts
    990
    Tokens
    125

    Default

    thats not php but then querying is very easy when php and mysql 'bond' together

  9. #29
    Join Date
    Oct 2005
    Location
    Corby
    Posts
    5,512
    Tokens
    2,675
    Habbo
    cabbage (origins)

    Latest Awards:

    Default

    Quote Originally Posted by mapowell1234 View Post
    We are currently hiring News Reporters. http://www.skylightlobby.com

    Requirements

    - Experience
    - Good grammer and spelling
    you spelt grammar wrong, as well as a lot of other things on the site
    but i like the site overall
    (not gonna apply though)
    no

  10. #30
    Join Date
    May 2007
    Location
    Nebo, NC, USA
    Posts
    2,517
    Tokens
    0

    Latest Awards:

    Default

    I am coding this in the quick reply so it ain't very clean:

    PHP Code:
    <?php
    class db {
    var 
    $server;
    var 
    $username;
    var 
    $password;
    var 
    $database;

    function 
    start_connect() {
    if(
    $this->username == "" || $this->password == "" || $this->server == "" || $this->database == "") {
    echo 
    "ERROR, cannot connect.";
    exit;
    }
    $this->connect_mysql();
    }

    function 
    connect_mysql() {
    mysql_connect($this->server$this->username$this->password);
    $this->select_db();
    }

    function 
    select_db() {
    mysql_select_db($this->database);
    }
    }
    ?>
    To use it, create a new file called config.php

    PHP Code:
    <?php
    include "mysql.php";
    $db = new db;
    $db->server "localhost"// MySQL server
    $db->username "root"// MySQL user
    $db->password "bla"// MySQL pass
    $db->database "bla"// MySQL db
    $db->start_connect();
    ?>

Page 3 of 3 FirstFirst 123

Posting Permissions

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