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. Quote 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 Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/141398-solved-calendar-help/#findComment-740185 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.