title: PDO -> if(table exist)
body: <pre><code>try {
      $query = $pdo-&gt;query("SELECT 1 FROM `classes` LIMIT 1");
  } catch (Exception $e) {
      $query = $pdo-&gt;prepare("CREATE TABLE `classes`(
      `ID_class` int(11) AUTO_INCREMENT,
      `name` varchar(255),
      PRIMARY KEY(`ID_class`))");
  
      $query-&gt;execute();
  }
  </code></pre>
  
  <p>Hello.</p>
  
  <p>It doesn't catch, if the table doesn't exist.</p>