Jump to content

[SOLVED] Calendar Help...


savagenoob

Recommended Posts

I am trying to turn a basic calendar into an interactive one that you can add stuff to, first step is to add a hyperlink to the day numbers in the calendar but I can't get it to work right. Here is the section of code that displays the day numbers... <?php echo( $d->get_day() ); ?>  to be specific.

<?php
<td class="<?php echo( $day_style ); ?>" width="13%"><div class="calendar-day-number"> <?php echo( $d->get_day() ); ?> </div>
            <div class="calendar-content"> <?php echo( $d->get_text() ); ?> </div></td>
?>

 

I try adding a hyperlink to it like...

<?php
<div class="calendar-day-number"> <a href="day.php?day="<?php echo( $d->get_day() ); ?>> </a>
</div>
?>

but it just makes all the day numbers blank.

 

Link to comment
https://forums.phpfreaks.com/topic/141398-solved-calendar-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.