Forum Moderators: coopster
$End=odbc_fetch_row($Result);
while($Counter<10 and $End<>null )
{
if ($End<>null)
{
echo(odbc_result($Result,1));
}
$Counter=$Counter+1;
$End=odbc_fetch_row($Result);
}
}
so with this we can see first 10 records,now we want to see next 10 records,i dont know how
can i pass this parameter to odbc_fetch_row since the driver dose not support it.
(in my local computer it is supported and i see the result but when i upload it i dont get any answer and also no error )
any suggestion how to solve it is appreciable
naghme
first page
$query = "SELECT * FROM table LIMIT 10";
as you display the records you keep the id of the last record displayed and then pass it on to the next page.
next page
$query = "SELECT * FROM table where id > " . $lastid . " order by id LIMIT 10";