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:35 AM
Views: 17
Sometimes it’s helpful to know whether a particular table exists before running an operation on it. Returns a boolean TRUE/FALSE. Usage example:
  1. if ($this->db->table_exists('table_name'))
  2. {
  3.         // some code...
  4. }
  5. No