...

View Full Version : Stuck on php thing for school



razmar
06-01-2007, 07:32 PM
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

ddanatzko
06-01-2007, 07:35 PM
http://us2.php.net/manual/en/function.date.php

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

mlseim
06-01-2007, 07:37 PM
We don't do homework ... look up PHP DATE on Google and learn about it.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum