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 4 of 4 FirstFirst 1234
Results 31 to 40 of 40
  1. #31
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    You put the code in step 5 at the top of the pages you have to login to view.
    Lets set the stage on fire, and hollywood will be jealous.

  2. #32
    Join Date
    Feb 2007
    Location
    Essex, England
    Posts
    1,392
    Tokens
    0

    Latest Awards:

    Default

    Yeah, as tom said.

    Sorry should have specified that better?


  3. #33
    Join Date
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default

    since I know nothing about PHP, you could tell us where to put what etc.

  4. #34
    Join Date
    Feb 2007
    Location
    Essex, England
    Posts
    1,392
    Tokens
    0

    Latest Awards:

    Default

    Well if the code is shown then below it, it says "Page here?" surely it is common sense to assume that the page continues below that code...


  5. #35
    Join Date
    Apr 2006
    Location
    Australia
    Posts
    307
    Tokens
    0

    Default

    This tut has helped me expand my PHP/MySQL knowledge quite well. I'm developing a usersystem for my site with it. Cheers.

  6. #36
    Join Date
    Aug 2008
    Posts
    206
    Tokens
    0

    Default

    Quote Originally Posted by Zaub View Post
    This tut has helped me expand my PHP/MySQL knowledge quite well. I'm developing a usersystem for my site with it. Cheers.
    Isn't that what he said you shouldn't do?

  7. #37
    Join Date
    Apr 2006
    Location
    Australia
    Posts
    307
    Tokens
    0

    Default

    Quote Originally Posted by UniqueHabbo View Post
    Isn't that what he said you shouldn't do?
    Huh.. So you want people to just copy and paste and ask for the code do you?

  8. #38
    Join Date
    Feb 2007
    Location
    Essex, England
    Posts
    1,392
    Tokens
    0

    Latest Awards:

    Default

    When he says "with it" I think he means his new-found php and mysql knowledge. I duno :rolleyes:

    Also, didn't say you shouldn't just recommended that you didn't as it is really basic.


  9. #39
    Join Date
    Aug 2009
    Location
    UK
    Posts
    274
    Tokens
    719

    Default

    Ive created a row which is called adminlevel and i want it so people with adminlevel 1 can use the register.php only how do i do it?

  10. #40
    Join Date
    Feb 2007
    Location
    Essex, England
    Posts
    1,392
    Tokens
    0

    Latest Awards:

    Default

    I'm not guna tell you how to do it all, but here's how you'd start:

    Code:
    <?php
    
    $username = $_SESSION['username'];
    
    $select = mysql_query("SELECT * FROM `users` WHERE `username`='".$username."'");
    $select2 = mysql_fetch_array($select);
    
    $level = $select2['adminlevel'];
    
    if($level=1 || $level='1') // I didn't know how'd you done it
    {
        // Show the page
    } else
    {
        // Tell them to go and die
    }
    
    ?>


Page 4 of 4 FirstFirst 1234

Posting Permissions

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