require("include/mcontact.inc"); require("include/headdark.inc"); require("include/writepages.php"); require("../inc/db.php"); $db = mysql_connect($dbserver,$dbuser,$dbpw); mysql_select_db($dbname,$db); dp_guestbook(); mysql_close($db); require("include/footdark.inc"); //========================================================================= function dp_guestbook(){ global $db; $maxshown=5; if( ($curpos=$_REQUEST['st'])=="")$curpos=1; //------------------------------------------------ $result=mysql_query("select count(*) as cnt from gbentry where gbtype=1",$db); if( ($rs=mysql_fetch_array($result))){ $maxrec=$rs['cnt']; } mysql_free_result($result); //------------------------------------------------ ?>
| There are No Entries Sign Guestbook |
| '.$curcnt.' | Name: '.$name.'');
//if($email!="")print(' <'.$email.'>');
if($homepage!="")print(' Homepage: '.$homepage.''); if($location!="")print(' Location: '.$location); print(' Reference: '.$refer.' Comment:'.$comment.' '.$agent.' '.$dt.' |