CodeIgniter Forums
Empty query result failsafe - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Empty query result failsafe (/thread-6492.html)



Empty query result failsafe - El Forum - 03-01-2008

[eluser]Unknown[/eluser]
I know this is something very simple that I'm just not using the right terms when searching. I'm not extremely experienced with PHP or CI (built one simple CI app before.)

I just need a way to display a message either when a query result is empty or at the end of a foreach loop (prefered) that there are no more results that also displays when there are no results. Thanks in advance.