Online interview questions

Prepare interviews on Anything, AnyWhere

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

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