{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Daily Menu Program assignment - Daily Menu Program This...

Info icon This 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: if (isset($_GET['m']) && isset($_GET['d']) && isset($_GET['y'])) { $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 to create a page for the daily menu. The restaurant will have the same menu everyday, but will
Image of page 1

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern