$limit) { if(! $page) $page = 0; if($next) $page++; if($prev) $page--; $start = $page * $limit; $totPage = ceil($NumPom / $limit); $currentPage = $page+1; $totalRecord = "Total Record : $NumPom Current : $currentPage/$totPage"; while($start > $NumPom) { $start = $start - $limit; $page--; } $navhid = " "; if($start > 0) { $navhid .= ""; $nav .= "Previous "; $p='Y'; } if(($start + $limit) < $NumPom ) { $navhid .= ""; if ( $p == 'Y' ) $nav .= "| Next "; else $nav .= "Next "; } } $QryGuestbook .= " LIMIT $start,$limit "; $resQryGuestbook=mysql_query($QryGuestbook,$cn); while($rowofQry=mysql_fetch_object($resQryGuestbook)) { $result.="
$rowofQry->Guest_text
";
if(!empty($rowofQry->Url))
{
$result.="$rowofQry->Url
";
}
$result.=$rowofQry->Name;
if(!empty($rowofQry->Email_id))
{
$result.="<$rowofQry->Email_id>";
}
$result.="
$rowofQry->Place -$rowofQry->Formatdate at $rowofQry->Timeformat
Killer Reply:
$rowofQry->Killer_ans
_______________________________________________________________________