PDA

View Full Version : Pagination script with my pagination php code?



webmaster000
12-15-2008, 01:16 PM
1) Script Title: Ajax Pagination script v1.2.2

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxpaginate/index.htm

3) Describe problem: Im trying to incorporate this script with my pagination code.


<?
for ($i = 1; $i <= $IntTotalPages; $i++)
{
if ($i == $IntPage)
{
echo "<strong>$i</strong> |";
} else
{
if (!empty($HTTP_GET_VARS['categoria']))
{
?>
<a href="index.php?categoria=<? echo $IntCategory; ?>&page=<? echo $i; ?>&id=<? echo $IntMaxID; ?>"><? echo $i; ?></a> |
<?
} else
{
?>
<a href="index.php?page=<? echo $i; ?>&id=<? echo $IntMaxID; ?>"><? echo $i; ?></a> |
<?
}
}
$IntMaxID = $IntMaxID - 12;
}
?>

I need help... im not a expert on php :(

ddadmin
12-15-2008, 10:47 PM
It's impossible to tell what the problem is just with the above snippet of code. Unfortunately debugging server side code is probably beyond the scoop of what we can help you with, as it's highly personal dependent on how everything else is set up on your backend. If you're not familiar enough with PHP, you may want to try and a freelancer to do it for you. Should be a rather quick job assuming they have access to your site/ mySQL database.