Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Dylan Lopez
Added: Apr 3, 2018 2:39 AM
Views: 14
Tags: no tags
Sometimes it’s helpful to know whether a particular field exists before performing an action. Returns a boolean TRUE/FALSE. Usage example:
  1. if ($this->db->field_exists('field_name', 'table_name'))
  2. {
  3.         // some code...
  4. }