Guestbook implementation
Posted: Sun Dec 27, 2009 9:55 am
Hello all i encounterd a problem wich i can't solve myself as i am no php wizard or any of that. I recently started on a website and a buddy of mine done the scripting in php but as he is out of the country for his work and won't be back for ages i am wondering if any of you would be able to assist me with the following problem. I whant to add a guestbook to a existing site / page system but it won't work for me. I tried it with a include or just plain copy paste add code thingy but everytime i try something the website gets kinda screwd
.
http://www.zoef-design.be/villa/en/guest.php this is what happens. Curently i don't have a guestbook running as it doesn't work with any of the guestbooks i tried it with. So i was hoping someone could give me some pointers or maybe a way wich would work.
Code of the page.
Tnx in advance for anything you can come up with.
http://www.zoef-design.be/villa/en/guest.php this is what happens. Curently i don't have a guestbook running as it doesn't work with any of the guestbooks i tried it with. So i was hoping someone could give me some pointers or maybe a way wich would work.
Code of the page.
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/mainTemplate.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<meta name="keywords" content="<?php echo $row['pageKeywords']; ?>" />
<meta name="description" content="<?php echo $row['pageDescription']; ?>" />
<title><?php echo $row['pageTitle']; ?> - <?php echo SITE_TITLE; ?></title>
<!-- InstanceEndEditable -->
<link href="../css/template.css" rel="stylesheet" type="text/css" />
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
</head>
<body>
<div id="mainContainer">
<div id="headerContainer">
<div class="langaugeNav">
<ul>
<?php
$langSql = "SELECT lnId, name, flag FROM languages ORDER BY lnId DESC";
$resultLang = query($langSql);
while($rowLang = fetchArray($resultLang)) {
?>
<li><a href="<?php echo '../langaugeSelector.php?ac=selectLanguage&lnId=' . $rowLang['lnId'].'&file='.currentFile(); ?>"><img src="../images/flags/<?php echo $rowLang['flag']; ?>" width="20" height="13" alt="<?php echo $rowLang['name']; ?>" /></a></li>
<?php } ?>
</ul>
</div>
<br class="clear" />
<div class="headerNavWarper">
<ul>
<li><a href="index.php"><?php echo HOME_LINK;?></a></li>
<li><a href="gallery.php"><?php echo GALLERY_LINK;?></a></li>
<li><a href="contact.php"><?php echo CONTACT_LINK;?></a></li>
<li><a href="guest.php"><?php echo GUEST_LINK;?></a></li>
</ul>
</div>
<br class="clear" />
</div>
<div id="container"><!-- InstanceBeginEditable name="container" -->
<div class="leftPanel">
<div class="pageHeading">
<h1>Guestbook</h1>
</div>
<div class="pageText">
<?php include("../guestbook/index.php"); ?>
<br />
<br />
</p>
</div>
</div>
<!-- InstanceEndEditable -->
<div class="rightPanel">
<div id="navContainer">
<div class="navWarper">
<ul>
<?php
$sqlLinks = "SELECT pageId, pageTitle FROM staticpages WHERE isEnable = 0 AND lnId = ".LANGUAGE_ID ." ORDER BY recordListingID ASC";
$resultLinks = query($sqlLinks);
$numRowsLinks = numRows($resultLinks);
if($numRowsLinks == 0){
echo '<li>No Page Found.</li>';
} else {
while($rowLinks = fetchArray($resultLinks)) {
?>
<li><a href="page.php?p=<?php echo $rowLinks['pageId']; ?>"><?php echo $rowLinks['pageTitle']; ?></a></li>
<?php }} ?>
</ul>
</div>
</div>
<div id="navContainerBottom"></div>
</div>
<br class="clear" />
</div>
<div id="containerBottom"></div>
<div id="footer">Copyrights © 2009 All Rights Reserved By <strong><a href="#">Villa Bali Amber</a></strong><a href="#">.</a></div>
</div>
</body>
<!-- InstanceEnd --></html>