Re: [Dave] If less than X records
Excellent, thanks... although upon implementing it I realised I need another criteria...
The productsRecord have a field 'Display' (with answers Yes/No).
It needs to be an IF statement whereby count of records with Display = Yes is less than 4.
Is the easiest way to run another call of the productsRecord list with a where display=yes clause, and then run the count within that?
i.e.
<?php
list($productsRecords, $productsMetaData) = getRecords(array(
'tableName' => 'products',
'where' => " online = 'Yes'",
?>
<?php if (count($productsRecords) < 4): ?>
That will work won't it? The count of less than 4 will be running from this new listing of only where records are online yes?
Fingers crossed...
Thanks again