CodeIgniter Forums
Empty query result failsafe - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Empty query result failsafe (/showthread.php?tid=6492)



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.