Database : How to checked table exist? - 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: Database : How to checked table exist? (/showthread.php?tid=17299) |
Database : How to checked table exist? - El Forum - 04-01-2009 [eluser]home158[/eluser] How to check my table exist in database? Is having libraries? Database : How to checked table exist? - El Forum - 04-01-2009 [eluser]eoinmcg[/eluser] Hi, You can do this very easily using CI's database class Code: if ($this->db->table_exists('table_name')) Cheers, Eoin |