title: Convert MySQLi into PDO with PHP?
body: <p>I apologize if I am not posting this in the right place. I wanted to know if I converted this correctly. I am trying to convert all my code in PDO.</p>
  
  <p>Here is the mySQLi:</p>
  
  <pre><code>    $stmt-&gt;execute();
      $stmt-&gt;bind_result($timestamp);
      $stmt-&gt;fetch();
      $stmt-&gt;close();
      return ($timestamp);
  </code></pre>
  
  <p>I changed it to:</p>
  
  <pre><code>$stmt-&gt;execute();
  $timestamp = $stmt-&gt;fetch();
  return ($timestamp);
  </code></pre>
  
  <p>Can someone tell me if I did this right?</p>