CodeIgniter Forums
Check the contents of a database field - 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: Check the contents of a database field (/showthread.php?tid=47837)



Check the contents of a database field - El Forum - 12-24-2011

[eluser]xxIdroxx[/eluser]
Hello community!
I'm doing a site with CodeIgniter and I have a problem. I need to create a php script that checks whether the x field of a table in my database is empty.
Like this:
if the field x php_users the table is empty then run this command, otherwise ....

Can you help me?