Is there a way to have a statement show like "No Records Found" when the query finds no records?
Forums
Statement for No Records found
Hi jason.clemens,
I think that in CFv5 you need to follow the DB Read action with an Event Switcher. Use that to check the size of the result array, if it's empty trigger the 'fail' event and add an Event Loop action there.
Bob
I think that in CFv5 you need to follow the DB Read action with an Event Switcher. Use that to check the size of the result array, if it's empty trigger the 'fail' event and add an Event Loop action there.
Bob
I am sorry , I forgot to specify. I meant for CCv5.
Hi Jason,
Please try to use this code in the header box:
Regards,
Max
Please try to use this code in the header box:
<?php
if(empty($rows)){
echo "no results found";
}
?>
Regards,
Max
This topic is locked and no more replies can be posted.