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 4 of 4

Thread: Birthday Script

  1. #1
    Join Date
    Oct 2005
    Location
    Up North
    Posts
    1,002
    Tokens
    93

    Latest Awards:

    Default Birthday Script

    I'm wanting to make a script like one what you can get for VB, how it shows who's birthday it is today, im guessing that theres a way to do it because theres one on habboremix, i'm having a rough guess at it and im thinking that it would be something like

    SELECT * FROM Members WHERE birthday = '$birthday'

    but im wondering how to match up todays date with the date included

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

    Latest Awards:

    Default

    When you take their birthday put it into the database as

    00 Month, so two digits for the day and then the month. Then to show who's birthday it is do this:

    PHP Code:

    $date 
    date('dS F');
    $query mysql_query("SELECT * FROM `users` WHERE `birthday`='" $date "'");

    while(
    $fetch mysql_fetch_array($query)) {

    echo(
    "It's " $fetch['name'] . "'s birthday today!<br />");

    }

    echo(
    "L?KE is fit"); 
    Something along those lines?
    Last edited by L?KE; 08-09-2008 at 04:08 PM.


  3. #3
    Join Date
    Oct 2005
    Location
    Up North
    Posts
    1,002
    Tokens
    93

    Latest Awards:

    Default

    tyvm :]

    +rep

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

    Latest Awards:

    Default

    S'alright


Posting Permissions

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