Creating the navigation links

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

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 153
  • Karma: 0
    • No Addiction
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
1146 Views
Last post 11-30-2011, 02:38:58
by hufujiyu
0 Replies
858 Views
Last post 07-22-2013, 11:29:23
by travharm
1 Replies
570 Views
Last post 07-09-2015, 11:49:01
by cwvps
1 Replies
1118 Views
Last post 07-23-2015, 01:48:50
by josephinek
0 Replies
461 Views
Last post 12-11-2015, 05:02:22
by thefriendlancer