Jump to content

paging


searls03

Recommended Posts

Ok, I am using range, but how do I make it display as a link?  currently, nothing shows....

 <?php  $sql = ("SELECT MIN(page123) AS first, MAX(page123) AS last FROM products");
  $result = mysql_query($sql);
while($row = mysql_fetch_array($result)){
$page1=$row['first'];
$page2=$row['last'];

}  
foreach (range($page1, $page2) as $number) {
?>    <a href=."<?php $number; ?>".></a>
<?php
}
?>

Link to comment
https://forums.phpfreaks.com/topic/255089-paging/#findComment-1308254
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.