This is my current code that I am trying to use, the page has links to get to the next page and previous page which should change which rows from the SQL table are displayed but for some reason the different rows are not displayed past “page” 1. Thanks for the help in advance
[php]<?php
include “connections/database.php”;
$page = $_GET[‘page’];
if ($_GET[‘page’])
{
if ($page == “1”){ $start=“0”; $end=“6”;}
elseif ($page == “2”){ $start=“7”; $end=“6”;}
elseif ($page == “3”){ $start=“14”; $end=“6”;}
elseif ($page == “4”){ $start=“20”; $end=“6”;}
elseif ($page == “5”){ $start=“27”; $end=“6”;}
elseif ($page == “6”){ $start=“34”; $end=“6”;}
elseif ($page == “7”){ $start=“41”; $end=“6”;}
elseif ($page == “8”){ $start=“48”; $end=“6”;}
elseif ($page == “9”){ $start=“55”; $end=“6”;}
elseif ($page == “10”){ $start=“62”; $end=“7”;}
$nextpage = $page + 1;
$backpage = $page - 1;
$sql2=“SELECT * FROM portfolio WHERE type=‘FirstSet’ ORDER BY packid ASC LIMIT $start,$end”;
}else{
$sql2=“SELECT * FROM portfolio WHERE type=‘FirstSet’ ORDER BY packid ASC LIMIT 0,6”;
$page ==“1”;
$nextpage = 2;
}
$result2=mysql_query($sql2);
while($rows=mysql_fetch_array($result2)){
?>
<? } ?>[/php]