Creating the navigation links

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

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 159
  • 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
0 Replies
904 Views
Last post 07-22-2013, 11:29:23
by travharm
1 Replies
620 Views
Last post 07-09-2015, 11:49:01
by cwvps
1 Replies
1187 Views
Last post 07-23-2015, 01:48:50
by josephinek
0 Replies
531 Views
Last post 12-11-2015, 05:02:22
by thefriendlancer
0 Replies
292 Views
Last post 03-01-2017, 15:17:59
by shughes0610