Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Stuck on php thing for school

    i'm have to do these php tasks for school and i'm stuck on one and am looking for someone to tell me how to do it


    Write a program that asks for the day of the week. If the day entered is not a valid day it should print an appropriate message.
    If the date is Saturday or Sunday it should say “I Love Weekends”. If the date is Monday it should say “I hate Mondays.”.
    Otherwise it should just say Today is $day_of_week

  • #2
    New Coder
    Join Date
    Jun 2007
    Location
    VA
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://us2.php.net/manual/en/function.date.php

    check the examples section, you should find what you're looking for

  • #3
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,538
    Thanks
    8
    Thanked 1,093 Times in 1,084 Posts
    We don't do homework ... look up PHP DATE on Google and learn about it.


  •  

    Posting Permissions

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