$url[$day_of_month]"); // *Note, you could actually make the print statement a variable. // End ?>


array('www.nfl.com', 'www.football.com', 'www.profootballhof.com', 'www.collegefootball.org', 'www.thisis-football.com' ), 'baseball' => array('www.mlb.com', 'www.baseball-alminac.com', 'www.majorleaguebaseball.com', 'www.baseballamerica.com/', 'www.baseball-links.com/' ), 'basketball' => array('www.nba.com/', 'www.basketball.com/', 'www.usabasketball.com/ ', 'www.powerbasketball.com/ ', 'www.wnba.com/' ), 'hockey' => array('www.nhl.com/', 'www.usahockey.com/', 'www.exploratorium.edu/hockey/', 'www.hhof.com/', 'www.thehockeynews.com/' ), 'volleyball' => array('www.volleyball.org/', 'www.usavolleyball.org/', 'www.volleyball.com/ ', 'www.volleyhall.org/', 'www.volleyballmag.com/ ' ), 'bowling' => array('www.bowling.com/', 'www.bowlingindex.com/', 'www.bowl.com/', 'www.amf.com/', 'www.brunswickbowling.com/' ), 'hunting' => array('www.hunting.net/', 'www.fishing-hunting.com/', 'www.cabelas.com/', 'www.hunting-trail.com/', 'www.huntinglinks.com/' ) ); // Get day of month $day_of_month = date("j"); // Get day of the week $day_of_week = date("w"); // Get week of month ***THIS PART IS NOT CORRECT $week_of_month = $day_of_month/6; // Create variables of equations to shorten coding $subject=$master_array[$day_of_week]; $url=$category[$subject][$week_of_month]; //Week_of_month IS NOT CORRECT // Print Results print("Todays Subject is: $subject
"); print("Todays url is: $url

"); ?>



BACK