highlight page selected in pagination?

Posted by Mahmoud on Stack Overflow See other posts from Stack Overflow or by Mahmoud
Published on 2010-05-09T22:15:23Z Indexed on 2010/05/09 22:18 UTC
Read the original article Hit count: 179

Filed under:
|

Hey There

i have a php page, that shows all products that are stored on the database, so everything in fine, but my problem is that i am trying to highlight or give a color when a selected number is clicked, example, let say i all my product are showing and there are 2 pages, so when the user clicks on next the next fade and number 2 is colored yellow this well help the user to on which page he is

below is my php code

<?php 
echo"<a style:'color:#FFF;font-style:normal;'> ";
   include "im/config.php";
   include('im/ps_pagination.php');
   $result = ("Select * from product ");
   $pager = new PS_Pagination($conn, $result, 5, 6, "product=product");
   $rs = $pager->paginate();
echo"<div id='image_container'>";
    echo $pager->renderFullNav();
    echo "<br /><br />\n";
while($row = mysql_fetch_array($rs)){

echo" <div class='virtualpage hidepiece'><a href='gal/".$row['pro_image']."' rel='lightbox[roadtrip]' title='".$row['pro_name']." : ".$row['pro_mini_des']."' style='color:#000'><img src='thumb/".$row['pro_thumb']."' /> </a></div>";


}

echo"</div>";
    echo "<br /><br />\n";
    echo $pager->renderFullNav();
echo"</a>";
   ?>

Thank everyone

© Stack Overflow or respective owner

Related posts about php

Related posts about pagination