GUESTBOOK   
 
 Guestbook Entries
 
 Post Guestbook
1): for($i=1;$i<=$numpages;$i++): if($i==1&&$page>1) $ret.="<< "; if($i==$page) $ret.="$i "; if($i!=$page) $ret.="".$i." "; if($i==$numpages&&$page!=$numpages) $ret.=">>"; endfor; endif; return $ret; } $page=(isset($page))?$page:1; $rs = mysql_query("select * from guestbook order by postdate desc"); $ada = @mysql_num_rows($rs); if ($ada){ $disppage=10; /* record to display on a page */ $numpages=ceil($ada/$disppage); $sn=shownumber($numpages,$page); if (!empty($sn)) { echo "$sn
"; } echo ""; $start=($page-1)*$disppage; mysql_data_seek($rs,$start); for($i=1;$i<=$disppage&&$row=@mysql_fetch_array($rs);$i++) { if (($i%2)==0){ $tdcol="#FFFFFF"; } else { $tdcol="#CCEDFF"; } echo "
"; echo "Name : ".$row[nama]." - (".$row[email].")"; echo "
Postdate : ".date('j F Y - H:i',$row[postdate]); echo "
".$row[comment]; } echo "
"; } else { echo "

No record(s) founds

"; } ?>
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
Name:
Email:
Comments:
"; echo "
Max Chars : 150
Chars left :
"; if(!empty($MyLogin)){ echo ""; } else { ?> "; } if ($allow_html=="no"){ $infohtml="Sorry, HTML Tags is not allowed"; } else { $infohtml="This guestbook is support for HTML Tags"; } echo "
".$infohtml."
"; echo ""; ?>