title: MySQLi Table Exists
body: <p>In PHP, what would be the best way of seeing if a table exists? </p>
  
  <p>This is what I am using so far</p>
  
  <pre><code>public function TableExists($table) {
      $res = $this-&gt;Query("SELECT 1 FROM $table");
  
      if(isset($res-&gt;num_rows)) {
          return $res-&gt;num_rows &gt; 0 ? true : false;
      } else return false;
  }
  </code></pre>