» Name is not valid. Please try again.

"); if (!chk_eml($email)) $errors[] = ("

» Please enter a valid email address.

"); if ($descr == "" || chk_wds($descr)) $errors[] = ("

» Your message is empty or not valid

"); if(count($errors)) { $has_errors = true; $atn = "add"; } if (!$has_errors){ $thedate = date("Y-m-d"); query("INSERT INTO guestbook SET name='$name',phone='$phone',email='$email',descr='$descr',date='$thedate'"); ?>

Guest Book Entry

Thank-You for signing my guestbook.


Guest Book Entry

$err) { print $err; } } ?>

Name:     
*Phone:   
*E-mail:   
Message:
*Phone and Email is used for correspondance only and not posted on this site or used for any third party purposes.


Guest Book

Sign the guest book     

No Entries Available


"; } else { $result = query("SELECT * FROM guestbook WHERE active = 1 ORDER BY date DESC LIMIT $offset,$pp"); $pages = ceil($gcount / $pp); print "

Page:  "; for($i = 0; $i < $pages; $i++) { $p_offset = $i * $pp; $actual = $i + 1; if ($actual == $opg) { echo "[$actual] "; } else { echo "[$actual] "; } } print "

"; print ""; print ""; while ($data =mysql_fetch_array($result)) { $mydate = strtotime($data['date']); $mysqldate = date("Y M d", $mydate); print ""; print ""; print ""; print ""; print ""; } print "
NameDateComment

" . $data['name'] . "

". $mysqldate . "

". $data['descr'] . "

"; print "

"; } ?>