Need some help

OK I have a PHP site all setup at http://www.bogointeractive.com/test/ that includes the following code, <img src="<?PHP echo date("Y") ?>/<?PHP echo date("md") ?>.jpg"> and I would like to have it be able to have the calendar opition under it much like what you see, ORIGINAL URL DELETED BY ADMIN is this something that can be done easy like with the script I have or what do I need to do? Please help!!!

ADMIN EDIT: Although some might find that link appropriate, I think a better example could be found to illustrate the point

Yes, that’s possible.

What is possible? That I can ad a calendar to that page? If that is possible please help me set it up. I would welcome any help I can get.

Glad to help…
have a look at http://www.cascade.org.uk/software/php/calendar/
or http://keithdevens.com/software/php_calendar
or viewtopic.php?f=15&t=8203
or my personal favorite Calendar is at http://pgardner.net/calendar/ code is below:

<?php
$ts=time()+(86400 * 0);

$day = date("w", $ts);
?>

<br>
<table border=1>
  <tr>
     <td colspan=7 align=center><b><? echo date("F Y", $ts);?></b></td>
  </TR>
  <tr>
    <td><b>Sun</b></td>
    <td><b>Mon</b></td>
    <td><b>Tue</b></td>
    <td><b>Wed</b></td>
    <td><b>Thu</b></td>
    <td><b>Fri</b></td>
    <td><b>Sat</b></td>
  </tr>

<?php
$StartDay = $ts - (86400* $day);
for ($w=0; $w<5; $w++){
    echo "<tr>";
    for ($i=0; $i <7; $i++){
        // Sets color for the Current Day
        if ($StartDay == $ts) {
          echo "<td bgcolor=#00ffff align=center> <b>". date("j", $StartDay)."</b></td>";
        } else {
          if (date("n", $StartDay) != date("n", $ts)){
            echo "<td align=center bgcolor=#cccccc>". date("j", $StartDay)."</td>";
          } else {
            echo "<td align=center>". date("j", $StartDay)."</td>";
          }
        }
        $StartDay += 86400;
   } // end of day of week
   echo "</tr>";
}  // end of week of month


?>
</table>

With a little creativity you can add color and make it look like the one at http://pgardner.net

OK those are all close to what I want, I think I need something that is going to pull in an image that is supposed to show for that day and make it a certain size IE thumbnail. I like where you went with the code though. It is getting me on the right track. I liked the one that had a link under it. I think that is sorta in the right direction.

Sponsor our Newsletter | Privacy Policy | Terms of Service