title: Finding if table exists or not in MySQL with codeIgniter?
body: <p>I want to check whether MySQL table presents or not in the database. I am using CodeIgniter 3.* v</p>
  
  <pre><code> if($this-&gt;db-&gt;query("SELECT * FROM `$table` Limit 1")-&gt;result() == TRUE){
      #next process if table found    
      }else{
      #display error
      }
  </code></pre>
  
  <p>I am finding solution on <a href="https://stackoverflow.com/questions/6432178/how-can-i-check-if-a-mysql-table-exists-with-php">How can I check if a MySQL table exists with PHP?</a></p>