getUploads: No “recordNum” been worth specified!

2 posts by 2 authors in: Forums > CMS Builder
Last Post: December 23, 2007   (RSS)

Re: [Djulia] getUploads: No “recordNum” been worth specified!

By Dave - December 23, 2007

Yes, just wrap step3 (the block that displays images) with this:

<?php if ($record): ?>
...
<?php endif ?>


That way if there is no record found it will skip that block and you'll just get the "No record found" error.

We'll add this to the code generator for the next release so it will be done automatically.

Also, keep in mind, you typically wouldn't go to the page viwer "blogPage.php" without specifying a record number. If no record number is specified on the end of the url it will try to load record 1.
Dave Edis - Senior Developer
interactivetools.com