WHERE statment

3 posts by 2 authors in: Forums > CMS Builder
Last Post: September 7, 2010   (RSS)

Hi,

I currently have an article site with a slideshow on the homepage: www.illumemag.com.

The slideshow currently lists the 5 most recent articles that are checked to appear in the slideshow. The same articles repeat at the bottom. How can I set it up so if the articles show up on the slideshow, they do not show at the bottom.

The code I have is this:
list($featureRecords) = getRecords(array(
'tableName' => 'am_articles',
'where' => "category <> '279' AND approved = 1",
'limit' => 20
));


If I added AND slideshow=1, the it completely takes out all those articles from the bottom display. I just the 5 most recent articles checked for slideshow not to appear at the bottom.

Thanks.

Re: [chris] WHERE statment

Hi Chris,

Thank you! This works out well!