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

devquora
devquora

Posted On: Apr 25, 2024

 

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...
}

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    CodeIgniter Interview Questions

    How to check the version of CodeIgniter framework?

    How to check the version of CodeIgniter framework?..