Show Record if Active

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

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

Hi Chris, that worked great, thanks so much!