I am developing calendar in php.in this i created next and previous button ,but it is not working greate.I used get variable for Next and previous.but only previous button is only working.this is my code-

                            <? if (isset($_GET['nm']))
                             else {
                            if (isset($_GET['pm'])){

                                else {
                                    <td><a href="calendar.php?<? echo $previous;?>"><img src="images/previous.png"></img></a></td>
                                    <td><? echo date('Y-m-d'); ?></td>
                                    <td><a href="calendar.php?<? echo $next;?>"><img src="images/next.png"></img></a></td>

please help me to make next and previous logic.

I have solved the problem.

Be a part of the DaniWeb community

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