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

Thread: PHP Question

  1. #11
    Join Date
    Apr 2009
    Location
    United Kingdom
    Posts
    1,111
    Tokens
    100

    Latest Awards:

    Default

    Quote Originally Posted by Protege View Post
    PHP Code:
    <?php

    if( date'l' ) == 'saturday' || date'l' ) == 'sunday' )
    {
        
    $day 'monday';
    }
    else
    {
        
    $day 'friday';
    }

    $date date'd/m/Y'strtotime"next {$day}) );

    echo 
    'The uniform for ' $date '<br /> • <i>' $uniform'uniform' ] . '</i>';

    ?>
    What's up with the spaces? :p

  2. #12
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    I'll code it like you sir:

    PHP Code:
    <?php
    if(date('l')=='saturday'||date('l')=='sunday'){
    $day='monday';
    }else{
    $day='friday';
    }
    $date=date('d/m/Y',strtotime("next {$day}"));
    echo 
    'The uniform for '.$date.'<br /> • <i>'.$uniform'uniform' ].'</i>';
    ?>
    Enjoy your read.
    Last edited by Protege; 12-10-2009 at 07:07 PM.
    Hi, names James. I am a web developer.

  3. #13
    Join Date
    Nov 2006
    Location
    D?sseldorf
    Posts
    2,858
    Tokens
    2,256

    Latest Awards:

    Default

    That looks like its working brill; thanks!

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
  •