SELECT MATCH HAVING

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

Re: [mdegive] SELECT MATCH HAVING

Hi,

The getRecords function has an array option called 'having' that would allow you to add the HAVING statement outside of the where statement. You can implement it something like this:

list($newsRecords, $newsMetaData) = getRecords(array(
'tableName' => 'listings',
'loadUploads' => true,
'allowSearch' => false,
'having' => "relevance > 0.2",
'orderBy' => 'area, relevance, date_available DESC'
));


Thanks!
Greg Thomas







PHP Programmer - interactivetools.com