Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.