savagenoob Posted January 19, 2009 Share Posted January 19, 2009 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 More sharing options...
MadTechie Posted January 19, 2009 Share Posted January 19, 2009 try this <?php echo "<div class=\"calendar-day-number\"> <a href=\"day.php?day=".$d->get_day().\">".$d->get_day()."</a></div>"; ?> EDIT: OOOPS typeosssssss Link to comment https://forums.phpfreaks.com/topic/141398-solved-calendar-help/#findComment-740184 Share on other sites More sharing options...
savagenoob Posted January 19, 2009 Author Share Posted January 19, 2009 Nice. thanks a lot. Link to comment https://forums.phpfreaks.com/topic/141398-solved-calendar-help/#findComment-740185 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.