Display problem with VIEW URL

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

By terryally - January 29, 2010

Hello,

I am including a database entry on the page

http://www.lakesidesurrey.co.uk/lcc_eventdetails.php and it works fine but when this is used as a VIEW URL the inclusion does not display.

To see what I mean view:
http://www.lakesidesurrey.co.uk/lcc_eventdetails.php first and then
http://www.lakesidesurrey.co.uk/lcc_eventdetails.php?Mother-s-Day-lunch-and-show-8

Can you tell me how to rectify this please?

Terry

P.S. if you click on an event link from http://www.lakesidesurrey.co.uk/home.php it will use the above template to display the details.

Re: [terryally] Display problem with VIEW URL

By Chris - January 29, 2010

Hi Terry,

Can you please post the complete PHP source code for that page?
All the best,
Chris

Re: [terryally] Display problem with VIEW URL

By Chris - February 1, 2010

Hi Terry,

Your featured event includes are using the record number of the request to select records. Can you try removing this line in both your featured event includes?

// FEATURED_EVENT1

<?php
list($featured_event_1Records, $featured_event_1MetaData) = getRecords(array(
'tableName' => 'featured_event_1',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$featured_event_1Record = @$featured_event_1Records[0]; // get first record
?>


I hope this helps! Please let me know if you have any questions.
All the best,
Chris

Re: [chris] Display problem with VIEW URL

By terryally - February 2, 2010

That did the trick Chris. Merci beacoup.