title: PHP PDO. error number '00000' when query is correct
body: <p>I have the code below:</p>
  
  <pre><code>$sql3 = "update news set date='$time' where id='2'";
  $sql3 = $connect-&gt;exec($sql3);
  if(!$sql3)
  {
      print_r($connect-&gt;errorInfo());
      $error = $connect-&gt;errorInfo();
      die ("Error: (".$error[0].':'.$error[1].') '.$error[2]);
  }
  </code></pre>
  
  <p>When I run the script, sometimes I get error number '00000'. I mean it goes intro the <code>IF</code>. and it is all random. output (sometimes):</p>
  
  <pre><code>Array ( [0] =&gt; 00000 [1] =&gt; [2] =&gt; )
  </code></pre>
  
  <p>What should I do to fix this problem ?<br>
  PS: The script executes correctly every time.</p>