There are No Entries

Sign Guestbook'); return;} print(''); $cnt=0; $curcnt=$curpos; $result=mysql_query("select * from gbentry where gbtype=1 order by dt desc LIMIT ".($curpos-1).",".$maxshown,$db); while( ($rs=mysql_fetch_array($result)) ){ $comment=$rs["comment"]; $name=$rs["name"]; $email=$rs["email"]; $homepage=$rs["homepage"]; $url=$rs["url"]; $refer=$rs["refer"]; $location=$rs["location"]; $ispri=$rs["private"]; $dt=$rs["dt"]; $ip=$rs["ip"]; $path=$rs["path"]; $agent=$rs["agent"]; if($url!="" && $homepage=="")$homepage=$url; if($ispri==1) $comment="  *PRIVATE*"; else $comment='
   '.$comment; if(substr($url,0,7)!="http://")$url="http://".$url; print(''); $curcnt++; } print("
'.$curcnt.'Name: '.$name.''); //if($email!="")print(' <'.$email.'>'); if($homepage!="")print('
Homepage: '.$homepage.''); if($location!="")print('
Location: '.$location); print('
Reference: '.$refer.'
Comment:'.$comment.'
'.$agent.'   '.$dt.'


".writepages($maxrec,$maxshown,$curpos,"gbread.php?")."

"); }