Creating the navigation links

Author Topic: Creating the navigation links  (Read 1434 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
0 Replies
1098 Views
Last post 07-22-2013, 11:29:23
by travharm
1 Replies
821 Views
Last post 07-09-2015, 11:49:01
by cwvps
1 Replies
1400 Views
Last post 07-23-2015, 01:48:50
by josephinek
6 Replies
4287 Views
Last post 06-30-2017, 19:41:05
by samba1233
0 Replies
178 Views
Last post 05-26-2017, 08:09:14
by veemo