Creating the navigation links

Author Topic: Creating the navigation links  (Read 1557 times)

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 158
  • Karma: 0
    • Hot Shaper
Creating the navigation links
« on: 07-30-2016, 05:48:39 »
This PHP solution shows how to create the navigation links to page back and forth through each subset of records. Continue working with the same file as before. Alternatively, use gallery_mysqli_07.php, or gallery_pdo_07.php

I have placed the navigation links in an extra row at the bottom of the thumbnail table. Insert this code between the placeholder comment and the closing </table> tag:

Quote
<tr><td>
<?php
// create a back link if current page greater than 0
if ($curPage > 0) {
echo '<a href="' . $_SERVER['PHP_SELF'] . '?curPage=' . ($curPage-1) .


 

Related Topics

  Subject / Started by Replies Last post
2 Replies
1251 Views
Last post 02-07-2018, 23:23:07
by JSImediaJS123
1 Replies
934 Views
Last post 07-09-2015, 11:49:01
by cwvps
6 Replies
4651 Views
Last post 06-30-2017, 19:41:05
by samba1233
0 Replies
257 Views
Last post 05-26-2017, 08:09:14
by veemo
2 Replies
147 Views
Last post 02-07-2018, 04:17:48
by damponting44