Small Problem (Cant See It)

3 posts by 2 authors in: Forums > CMS Builder
Last Post: August 14, 2008   (RSS)

By Mohaukla - August 14, 2008

I am just finishing some work on this site when I get different results on two different pages.
Page 1 http://www.rbwmissions.com/css_sliced/adoptachild.php

This page works fine .... On the "Get Involved" Button there is a dropdown that has "Sponsor a Child" at the bottom.
This is prompted by:
<li><a href="adoptachild.php">&nbsp;<?php echo $aac_infoRecord['title'] ?></a></li>

Page 2
http://www.rbwmissions.com/css_sliced/get_involved_full.php?Be-a-RBW-Prayer-Partner-4
This page has the same code but the "Sponsor a Child" does not appear .. there is added room for the list item but the 'title' field is not showing.

Does this problem have something to do with the fact that page 2 is a Detail Page with a record tag (.php?Be-a-RBW-Prayer-Partner-4 )

Is there something I should change in the head:
<?php
require_once "C:/Webspace/resadmin/mmoyers/rbwmissions.com/www/cmsAdmin/lib/viewer_functions.php";

list($short_terms_missionsRecords, $short_terms_missionsMetaData) = getRecords(array(
'tableName' => 'short_terms_missions',
));
require_once "C:/Webspace/resadmin/mmoyers/rbwmissions.com/www/cmsAdmin/lib/viewer_functions.php";

list($pastor_listRecords, $pastor_listMetaData) = getRecords(array(
'tableName' => 'pastor_list',
));
require_once "C:/Webspace/resadmin/mmoyers/rbwmissions.com/www/cmsAdmin/lib/viewer_functions.php";

require_once "C:/Webspace/resadmin/mmoyers/rbwmissions.com/www/cmsAdmin/lib/viewer_functions.php";

list($get_involvedRecords, $get_involvedMetaData) = getRecords(array(
'tableName' => 'get_involved',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$get_involvedRecord = @$get_involvedRecords[0]; // get first record

list($get_involvedRecords, $get_involvedMetaData) = getRecords(array(
'tableName' => 'get_involved',
));
require_once "C:/Webspace/resadmin/mmoyers/rbwmissions.com/www/cmsAdmin/lib/viewer_functions.php";

list($about_usRecords, $about_usMetaData) = getRecords(array(
'tableName' => 'about_us',
));
require_once "C:/Webspace/resadmin/mmoyers/rbwmissions.com/www/cmsAdmin/lib/viewer_functions.php";

list($child_listRecords, $child_listMetaData) = getRecords(array(
'tableName' => 'child_list',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$child_listRecord = @$child_listRecords[0]; // get first record
require_once "C:/Webspace/resadmin/mmoyers/rbwmissions.com/www/cmsAdmin/lib/viewer_functions.php";

list($child_listRecords, $child_listMetaData) = getRecords(array(
'tableName' => 'child_list',
));
require_once "C:/Webspace/resadmin/mmoyers/rbwmissions.com/www/cmsAdmin/lib/viewer_functions.php";

list($aac_infoRecords, $aac_infoMetaData) = getRecords(array(
'tableName' => 'aac_info',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$aac_infoRecord = @$aac_infoRecords[0]; // get first record


?>


Thanks for your help
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] Small Problem (Cant See It)

By Dave - August 14, 2008

Hi Michael,

Try removing this line (in red):

list($aac_infoRecords, $aac_infoMetaData) = getRecords(array(
'tableName' => 'aac_info',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));

That way it will ignore the number in the url when loading a record from the aac_info table.

Let me know if that fixes it for you!
Dave Edis - Senior Developer
interactivetools.com