Show Record if Active

3 posts by 2 authors in: Forums > CMS Builder
Last Post: December 29, 2009   (RSS)

By theclicklab - December 28, 2009

Hi there, I have a field for if the page is active and have included this in the head:

list($aboutRecords, $aboutMetaData) = getRecords(array(
'tableName' => 'about',
'where' => whereRecordNumberInUrl(1),
'where' => 'active ="1"',
'limit' => '1',
));


But my problem is that I only get the first record back for all pages. If I remove:

'where' => 'active ="1"',

Everything works fine. Any suggestions on how to make this work correctly?

Many thanks!

Re: [chris] Show Record if Active

By theclicklab - December 29, 2009

Hi Chris, that worked great, thanks so much!