pls advise - Issue with no records found query

2 posts by 2 authors in: Forums > CMS Builder
Last Post: December 18, 2020   (RSS)

By Jenna - December 18, 2020

Hi Patricia,

I think you have the code almost right, you are just missing a PHP function. (stristr) Your code is below:

<?php if (!$rentalsRecords['available'], "\t"."NOW"."\t") ): ?>
No records were found!<br><br>
<?php endif ?>

And I think it should be:

<?php if (!stristr($rentalsRecords['available'], "\t"."NOW"."\t") ): ?>
No records were found!<br><br>
<?php endif ?>

Please let me know if this helps.

Jenna Cooke - PHP Programmer
interactivetools.com