title: PDO SQL-state "00000" but still error?
body: <p>Can anybody explain why</p>
  
  <pre><code>$sql-&gt;execute($params);
  </code></pre>
  
  <p>returns <code>FALSE</code>, whereas</p>
  
  <pre><code>print $pdo-&gt;errorCode();
  print_r($pdo-&gt;errorInfo());
  </code></pre>
  
  <p>both return <code>SQLSTATE</code> <code>00000</code>, which means according to the documentation success? It is an <code>INSERT</code> and nothing is actually being inserted into the database... so, why do I get a success message from <code>SQLSTATE</code>?</p>
  
  <hr>
  
  <p>In case it helps, this is the code...</p>
  
  <pre><code>$sql = $pdo-&gt;prepare("
          INSERT INTO user (
              username, fname, pass, salt, email,
              loc_id_home, country_id_home, region_id_home,
              cont_id_home, timestamp_reg, timestamp_upd, timestamp_lastonline, 
              online_status, gender, birthdate
              )
          VALUES (
              :username,:fname,:pass,:random_salt,:email,
              :loc_id_home,:country_id_home,:region_id_home,
              :cont_id_home,'".time()."','".time()."','".time()."',
              1,:gender,:birthdate)
          ");
  
  $params=array(
      ':username'=&gt;$username,
      ':fname'=&gt;$fname,
      ':pass'=&gt;$pass,
      ':random_salt'=&gt;$random_salt,
      ':email'=&gt;$email,
      ':loc_id_home'=&gt;$loc_id_home,
      ':country_id_home'=&gt;$country,
      ':region_id_home'=&gt;$region,
      ':cont_id_home'=&gt;$continent,
      ':gender'=&gt;$gender,
      ':birthdate'=&gt;$birthdate
  );  
  
  $sql-&gt;execute($params);
  
  print $pdo-&gt;errorCode();
  print_r($pdo-&gt;errorInfo());
  </code></pre>