Click for Primarily Petroliana Home page.
This image will change monthly


$month_name, $this_year © Oldgas.com. 57 Roadmaster at the pumps, US Hwy 321 in South Carolina by TG

\n" . " \n" . "\n" . "\n" . "\n" . "\n" . "\n" . "\n" . "\n" . "\n" . "\n"; /* Grab the first day of the month, and total days */ $first_day = date("w", mktime(0, 0, 0, $this_month, 1, $this_year)); $total_days = date("t", mktime(0, 0, 0, $this_month, 1, $this_year)); /* Start on the day of the first week */ $week_num = 1; $day_num = 1; /* While the day of the week isn't '7' */ while ($week_num <= 6) { echo "\n"; /* Loop through the week days */ for ( $i = 0; $i <= 6; $i++ ) { /* If it's the first week then... */ if ($week_num == 1) { /* If it's not the first day yet, then use a space */ if ($i < $first_day) $the_day = " "; /* If it is the first day, then start with a '1' */ else if ($i == $first_day) { $the_day = 1; } } else { /* If we're past the total days, then use spaces */ if ($the_day > $total_days) $the_day = " "; } /* Display the day (or space) */ echo "\n"; /* Incrememnt the day of the month */ if ($the_day != " ") $the_day++; } echo "\n"; /* Increment the week number */ $week_num++; } /* Finish off with closing out our tags */ echo "
SunMonTueWedThuFriSat
$the_day
\n" . "
\n" . "
\n" . "Click here to Change to Next Month >> | Print Calendar | View Events Listings | Calendar Archive | Visit Oldgas.com\n" . "
\n"; ?> Join us at Oldgas.com - Shop Talk Petro Collectible Discussion Forum, Classified Ads, Petro Web Directory, Collectors Roster