I have a slight problem:
print "<br><b>Entries</b><br><br>";
if(!isset($start)) $start = 0;
$r=mysql_query("SELECT * FROM cl_entries WHERE CatID='$catID' LIMIT " . $start . ", 2", $db) or die("2");
while ($res = mysql_fetch_array($r))
{
print "<b>Name:</b>$res[name]<br>";
print "<b>E-mail</b>:$res[email]<br>";
print "<b>URL:</b><a href='$res[URL]'>$res[EntryName]</a><br>";
print "<b>Description:</b><br>$res[Description]<br><br>";
}
$d=0;
$query = "SELECT * FROM cl_entries where CatID='$catID'";
$result = mysql_query($query);
while($row=mysql_fetch_array($result))
{
$d=$d+1;
}
$numrows = $d;
if($start > 0)
print "<a href=\"" . $PHP_SELF . "?start=" . ($start - 2) .
"\">Previous</a><BR>\n";
if($numrows > ($start + 2))
print "<a href=\"" . $PHP_SELF . "?start=" . ($start + 2) .
"\">Next</a><BR>\n";
Okay there are 4 entries in that cateogory and the it displays 2 entires per page. The next link appears, but when I click on it, it just takes me back to the main index of the directory instead of displaying the next 2 entries. Help!!