Next Page "No Record Found"

4 posts by 2 authors in: Forums > CMS Builder
Last Post: March 5, 2010   (RSS)

By Mohaukla - March 4, 2010 - edited: March 4, 2010

I cant see the problem as the code for my page shows the links for the next page. But once you get there it is blank with "No Record Found"
Its set up to show 10 entries per page but there are more than 10 so the next page should have 2 entries on it. Any Advice?

Site: http://www.efreewillmar.org/blog.php

Header Code:
[code<?php
require_once "C:/Webspace/resadmin/mmoyers/efreewillmar.org/www/cmsAdmin/lib/viewer_functions.php";

list($blog_page_contentRecords, $blog_page_contentMetaData) = getRecords(array(
'tableName' => 'blog_page_content',
'where' => whereRecordNumberInUrl(1),
'loadUploads' => '0',
'limit' => '1',
));
$blog_page_contentRecord = @$blog_page_contentRecords[0];

if (!$blog_page_contentRecord) {
print "Record not found!";
exit;
}

?>
<?php
require_once "C:/Webspace/resadmin/mmoyers/efreewillmar.org/www/cmsAdmin/lib/viewer_functions.php";

list($blog_pageRecords, $blog_pageMetaData) = getRecords(array(
'tableName' => 'blog_page',
'perPage' => '10',
'allowSearch' => '0',
));

?>

Section in question:
<?php foreach ($blog_pageRecords as $record): ?>
<span class="style11"><?php echo $record['title'] ?></span><br/>
<span class="style16"> <?php echo date("D, M jS, Y ", strtotime($record['date'])) ?></span><br/>
<span class="style16">By: <?php if ($record['name']): ?><?php echo $record['name'] ?></span><br/><br/>
<?php else: ?><span class="style16">Pastor Greg Gangwish</span><br/><br/><?php endif ?>
<span class="style16"><?php echo $record['content'] ?></span></p>
<?php foreach ($record['uploads'] as $upload): ?>
<?php if ($upload['hasThumbnail']): ?>
<img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt='' /><br/>

<?php elseif ($upload['isImage']): ?>
<img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt='' /><br/>

<?php else: ?>
<span class="style16"><?php echo $upload['info2'] ?><br/>
<a href="<?php echo $upload['urlPath'] ?>"><strong>Download : <?php echo $upload['info1'] ?></strong></a></span><br/>
<?php endif ?>
<?php endforeach ?>
<hr><p>
<?php endforeach ?>
<?php if ($blog_pageMetaData['prevPage']): ?>
<a href="<?php echo $blog_pageMetaData['prevPageLink'] ?>">&lt;&lt; prev</a>
<?php else: ?>
&lt;&lt; prev
<?php endif ?>

- page <?php echo $blog_pageMetaData['page'] ?> of <?php echo $blog_pageMetaData['totalPages'] ?> -

<?php if ($blog_pageMetaData['nextPage']): ?>
<a href="<?php echo $blog_pageMetaData['nextPageLink'] ?>">next &gt;&gt;</a>
<?php else: ?>
next &gt;&gt;
<?php endif ?>

Michael Moyers



Owner of Just Rite Design Inc. A growing network of professionals in web design, graphic design, flash development, programming, and audio & video productions.



"Due to budget constraints, the Light at the end of the tunnel will be temporarily out!"

Re: [justritedesign] Next Page "No Record Found"

By Mohaukla - March 5, 2010

Note here:
I had to switch the webpage to show 20 for now until I resolve this problem. So currently it will not show the problem but if set to a lower number it will.
Michael Moyers



Owner of Just Rite Design Inc. A growing network of professionals in web design, graphic design, flash development, programming, and audio & video productions.



"Due to budget constraints, the Light at the end of the tunnel will be temporarily out!"

Re: [Damon] Next Page "No Record Found"

By Mohaukla - March 5, 2010

Excellent!

Thanks,
Michael Moyers



Owner of Just Rite Design Inc. A growing network of professionals in web design, graphic design, flash development, programming, and audio & video productions.



"Due to budget constraints, the Light at the end of the tunnel will be temporarily out!"