Re: [Dave] How to insert php 'include' on homepage.php
Dave,
I have just started on this site but here is url;
http://www.infinitewell-being.com/indexa.php and articleList.php is located in root also.
This is the error message on homepage:
Warning: main(,articleList.php): failed to open stream: No such file or directory in/hermes/web01/b1420/as.wellbeing/public_html/indexa.php on line 105
Warning: main(): Failed opening ',articleList.php' for inclusion(include_path='/hermes/web01/b1420/as.wellbeing/public_html/cmsAdmin:.:/usr/local/lib/php-4.4.7/lib/php') in/hermes/web01/b1420/as.wellbeing/public_html/indexa.php on line 105
I am not familiar with php so am hoping this is an ez fix. I have 3 articles in admin and list url is articleList.php.
Also, does this stay on the articleList.php page?
<hr/>
<?php endforeach; ?>
<?php if (!$articles_1st_colRecords): ?>
No records were found!<br/><br/>
<?php endif ?>
<!-- /STEP2: Display Records -->
And also where on page does this belong - above? <!DOCTYPE or in head?
<?php
require_once "/hermes/web01/b1420/as.wellbeing/public_html/cmsAdmin/lib/viewer_functions.php";
list($articles_1st_colRecords, $articles_1st_colMetaData) = getRecords(array(
'tableName' => 'articles_1st_col',
'allowSearch' => '0',
));
?>
:-)
Thanks for helping me get started with CMSBuilder,
melinda
webfootstudios.com