How to check a field or column exists in a table or not in Codeigniter?

  • Posted by Sharad Jaiswal

    Code for Checking a field or column exists or not in a Codeigniter table.

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

Please Login or Register to leave a response.

Related Questions