Daily Menu Program assignment

Daily Menu Program - Daily Menu Program This assignment uses a function called getdate which returns information about the current date and time

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Daily Menu Program This assignment uses a function called getdate() , which returns information about the current date and time. Here's what you have to know about it for this assignment. If you use these instructions: { $monthnumber = $_GET['m']; $dayofmonth = $_GET['d']; $year = $_GET['y']; $timestamp = mktime(0,0,0,$monthnumber,$dayofmonth,$year); $now = getdate($timestamp); } else { $now = getdate(); $monthnumber = $now['mon']; $dayofmonth = $now['mday']; $year = $now['year']; } $dayofweek = $now['wday']; $dayofweek will contain a number 0 through 6 that corresponds to 0=Sunday, 1=Monday, 2=Tuesday,. ... 6=Saturday. The Assignment Your friend who has been working at a fast food restaurant as long as you can remember just won hundreds of millions of dollars in the lottery. He's decided that the best way to get back at the bosses he didn't like is to start his own fast food restaurant chain and put his old company out of business. Having nothing better to do, you decide to help out and help create his website. Your first task is
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/07/2010 for the course CIS CIS105/100 taught by Professor Mr.mccoy during the Spring '10 term at Elgin Community College.

Page1 / 2

Daily Menu Program - Daily Menu Program This assignment uses a function called getdate which returns information about the current date and time

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online