title: Create table with PDO
body: <p>I get this error: </p>
  
  <blockquote>
    <p>Uncaught Error: Call to undefined method PDO::execute()</p>
  </blockquote>
  
  <p>My code:</p>
  
  <pre><code>&lt;?php
  session_start();
  require("../connecting-to-database.php");
  
  $query = "CREATE TABLE `classes`(
                         `ID_class` int(11),
                         `name` varchar(255),
                         PRIMARY KEY(`ID_class`))";
  $pdo-&gt;execute($query);
  </code></pre>
  
  <p>What is my problem?</p>