title: PDO, was the query done correctly?
body: <p>Could this method be used to check if the insert (or other types of queries) was done successfully?</p>
  
  <pre><code>$sql = 'INSERT INTO mytable (info, address, phone) VALUES (?,?,?)';
  $sth = $conn-&gt;prepare($sql);
  
  if ($sth-&gt;execute(array($info, $address, $phone))) {
     // success!, now do something
  }
  </code></pre>
  
  <p>Or will it return true even if nothing was inserted, but the prepare/query itself was ok ?</p>