Welcome to the RaGEZONE - MMORPG development forums.

how to make a userlist with php

This is a discussion on how to make a userlist with php within the Habbo Tutorials forums, part of the Habbo Hotel category; Hello people, Here a tut how to make a user list with php. First whe just start with PHP Code: ...

LyncusMU
Results 1 to 5 of 5
  1. #1
    RaGEZONER
    Rank
    Newbie
    Join Date
    Jun 2010
    Location
    Netherlands
    Posts
    86
    Liked
    7

    how to make a userlist with php

    Tabo Hotel
    Hello people,

    Here a tut how to make a user list with php.
    First whe just start with
    PHP Code:
    <?php

    ?>
    really simple.
    now whe make a query
    PHP Code:
    <?php
    $userlist_query 
    mysql_query("SELECT * FROM users");
    ?>
    yup really simple
    now whe get the data as a object and whe order the users by id
    PHP Code:
    <?php
    $userlist_query 
    mysql_query("SELECT * FROM users ORDER BY id DESC");
    $get_users mysql_fetch_object($userlist_query);
    ?>
    so the query is done and now whe al get the data by a while like this
    PHP Code:
    <?php
    $userlist_query 
    mysql_query("SELECT * FROM users ORDER BY id DESC");
    while(
    $get_users mysql_fetch_object($userlist_query)) {
    echo 
    $get_users->username;
    echo 
    '<br />';
    }
    ?>
    that is al :)
    dont forget to include your config.php
    it can i make a mistake i dont tested it ;x
    it can i make a bad english text i am hollands

    greats ,
    Smiegles

  2. HostKey.com: Unmetered Dedicated servers in the Netherlands
  3. #2
    Habbo Section.
    Rank
    Subscriber
    Join Date
    Oct 2011
    Location
    New York
    Posts
    1,879
    Liked
    410

    Re: how to make a userlist with php

    Nice,

    But this should be in the coding section.

  4. #3
    RaGEZONER
    Rank
    Newbie
    Join Date
    Jun 2010
    Location
    Netherlands
    Posts
    86
    Liked
    7

    Re: how to make a userlist with php

    no it is for UberCms and phpoenix <3

  5. #4
    Working in private usage.
    Rank
    Member +
    Join Date
    Jul 2011
    Location
    On FrostEmu
    Posts
    886
    Liked
    128

    Re: how to make a userlist with php

    Quote Originally Posted by smiegles View Post
    no it is for UberCms and phpoenix <3
    It can be done for each cms though, so it must be in the coders paradise section. Also this is good for noobs, which can't script in PHP.

  6. #5
    Habbo Section.
    Rank
    Subscriber
    Join Date
    Oct 2011
    Location
    New York
    Posts
    1,879
    Liked
    410

    Re: how to make a userlist with php

    Oh i see didn't know that. Nice job.

 

 

Posting Permissions

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