×

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:40 AM
Views: 3004
  1. $fields = $this->db->field_data('table_name');
  2.  
  3. foreach ($fields as $field)
  4. {
  5.         echo $field->name;
  6.         echo $field->type;
  7.         echo $field->max_length;
  8.         echo $field->primary_key;
  9. }