hello matt,
thanks for such a useful tutorial
but my problem still persists
like u have nowhere incremented $start
and iam unable to get the previous and next links
what is that $PHP_SELF variable?
$start is initialised to 0
when i say sql query LIMIT by $start,10
for previous link ,i get $start-10 will be -9
what is wrong with the folowing code?
<?php
include("config.php");
$conn = @mysql_connect($config["host"],$config["user"],$config["password"]) ;
$db = @mysql_select_db($config["database"],$conn) ;
if(!isset($start)) $start = 0;
$sqla = "select * from nseckbugs LIMIT " . $start . ", 10";
//echo "$sqla";
$resa = @($sqla,$conn);
$numrows = @mysql_num_rows($resa);
echo "The number of rows is $numrows";
if($start > 0)
{
echo "<a href=\"cv.php?start=$start - 10\">Previous</a><BR>";
}
if($numrows > ($start + 10))
{
echo "$numrows";
echo "<a href=\"cv.php?start=$start + 10\">N