View Single Post
  #3 (permalink)  
Old 10-31-2003, 04:08 PM
jackson992 jackson992 is offline
WebProWorld Veteran
 

Join Date: Sep 2003
Location: SD
Posts: 771
jackson992 RepRank 0
Default

Thx:

I'm still having trouble with this part. Did I do something wrong?

start of code:
------------------------------------

<?

if($page != 1){
$pageprev = $page-1;
}

echo("<a href=\"jackscategories.php?$page=$pageprev\">PREV</a> ");

$numofpages = $totalrows / $limit;
for($i = 1; $i <= $numofpages; $i++){
if($i == $page)
echo($i." ");
else
echo("<a href=\"jackscategories.php?$page=$i\">$i</a> ");
}

if(($totalrows % $limit) != 0){
if($i == $page)
echo($i." ");
else
echo("<a href=\"jackscategories.php?page=$i\">$i</a> ");
}

if(($totalrows - ($limit * $page)) > 0){
$pagenext = $page+ 1;
echo("<a href=\"jackscategories.php?page+1=$pagenext\">NEXT </a>");
}else
echo(" NEXT ".$limit);
mysql_free_result($result);
?>


It's giving me the following error message:

Warning: Division by zero in /home/wwwjack/public_html/online-shopping-at-discount-prices-sitemap.php on line 215
__________________
Jack Mitchell
Home Shopping Online | Sports To Go | Shopping To Go
Reply With Quote