checking the detail of database table in codeigniter


These functions let you fetch table information.

$this->db->list_tables();
Returns an array containing the names of all the tables in the database you are currently connected to. Example:


if ($this->db->table_exists('table_name'))
{
   // some code...
}

Comments

Popular posts from this blog

Merge JS and CSS file to make your codeigniter website faster using CARABINER library