Hello, I have a problem that I'm pretty sure I already got done before but I got lost since I didn't note down my changes with my code. My problem is that I need my displayed calendar to move fluidly showing the next 4 months and the previous 4 months. This is my calendar php.

</table></td>
    </tr>
    <tr> 
      <td align=center> 
        <?

print "<table cellpadding=1 cellspacing=0 border=0>";

for($i=0;$i<1;$i++) {

  print "<tr>";

  for($j=0;$j<4;$j++) {

    print "<td>";

    $cal->SetDate($month,$year);

    $cal->Show();

    $month++;

    if ($month==13) {

      $month=1;

      $year++;

    }

    print "</td>";

  }

  print "</tr>";

}

print "</table>";



if ($page>1) {

  $prev=$page-1;

  print "<a class=\"link\" href=\"".$_SERVER['PHP_SELF']."?p=$prev\">Prev</a>&nbsp;";

}

if ($page>=1) {

  $next=$page+1;

  print "<a class=\"link\" href=\"".$_SERVER['PHP_SELF']."?p=$next\">Next</a>";

}

?>
      </td>
    </tr>
  </form>
</table>

Can anyone help? Please...

Member Avatar for diafol

What are we supposed to be looking at?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.