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 2 of 2 FirstFirst 12
Results 11 to 11 of 11

Thread: PHP Question

  1. #11
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    PHP Code:
    $query mysql_query("SELECT mabanned FROM `users` WHERE username='$username'");
    $row mysql_fetch_array($query);
            
    if(
    $row['mabanned'] != 0) {
        die(
    'You have been banned from logging in.');

    Is a bit simpler.

    In double quotes ( " ) you can reference variables directly. If you're not referencing variables use single quotes ( ' ) as they're more efficient in those circumstances.
    Last edited by Chippiewill; 09-11-2012 at 09:43 PM.
    Chippiewill.


Page 2 of 2 FirstFirst 12

Posting Permissions

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