Page viewer oddity
3 posts by 2 authors in: Forums > CMS Builder
Last Post: August 22, 2008 (RSS)
By roddruce - August 21, 2008 - edited: August 21, 2008
On my demo page I have the number "1", which I can't remove. http://demo.ourmenus.com.au/
I am not sure if it is the code generation causing the problem or further editing needed? The code is shown below...
Rod
===========================================================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd[/url]">
<html xmlns="http://www.w3.org/1999/xhtml[/url]">
<head>
<?php require_once "/home/ou/our/ourmenus.com.au/public/www/cmsAdmin/lib/viewer_functions.php"; list($demoRecords, $demoMetaData) = getRecords(array( 'tableName' => 'demo', 'where' => whereRecordNumberInUrl(1), 'loadUploads' => '0', 'limit' => '1', )); $demoRecord = @$demoRecords[0]; // get first record ?>
<title></title>
<meta http-equiv="Content-Type"
content="text/html;charset=UTF-8" />
<style type="text/css">
body { font-family: arial; }
.instructions { border: 3px solid #000; background-color: #EEE; padding: 10px; text-align: left; margin: 25px}
</style>
</head>
<body>
<p align="left"><img src="demo.jpg" border="0"
height="159" width="596" /><br />
<font face="Verdana"><span style="font-size: 11pt;">
<h1>Demo - Detail Page Viewer</h1>
<?php echo $demoRecord['num'] ?><br />
<?php echo $demoRecord['Demo'] ?>
<?php if (!$demoRecord): ?><a ="">No
record found!<br />
<?php endif ?><!-- /STEP2: Display Records -->
</a></span></font></p>
</body>
</html>
===================================================================
I am not sure if it is the code generation causing the problem or further editing needed? The code is shown below...
Rod
===========================================================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd[/url]">
<html xmlns="http://www.w3.org/1999/xhtml[/url]">
<head>
<?php require_once "/home/ou/our/ourmenus.com.au/public/www/cmsAdmin/lib/viewer_functions.php"; list($demoRecords, $demoMetaData) = getRecords(array( 'tableName' => 'demo', 'where' => whereRecordNumberInUrl(1), 'loadUploads' => '0', 'limit' => '1', )); $demoRecord = @$demoRecords[0]; // get first record ?>
<title></title>
<meta http-equiv="Content-Type"
content="text/html;charset=UTF-8" />
<style type="text/css">
body { font-family: arial; }
.instructions { border: 3px solid #000; background-color: #EEE; padding: 10px; text-align: left; margin: 25px}
</style>
</head>
<body>
<p align="left"><img src="demo.jpg" border="0"
height="159" width="596" /><br />
<font face="Verdana"><span style="font-size: 11pt;">
<h1>Demo - Detail Page Viewer</h1>
<?php echo $demoRecord['num'] ?><br />
<?php echo $demoRecord['Demo'] ?>
<?php if (!$demoRecord): ?><a ="">No
record found!<br />
<?php endif ?><!-- /STEP2: Display Records -->
</a></span></font></p>
</body>
</html>
===================================================================
Re: [roddruce] Page viewer oddity
By Dave - August 21, 2008
Hi Rod,
Try removing this line, it's the record number used in the database, you likely don't need it in this case.
<?php echo $demoRecord['num'] ?><br />
Hope that helps!
Try removing this line, it's the record number used in the database, you likely don't need it in this case.
<?php echo $demoRecord['num'] ?><br />
Hope that helps!
Dave Edis - Senior Developer
interactivetools.com
interactivetools.com