title: Call to undefined method PDOStatement::fetch_array()
body: <p>I'm trying to make a system that takes a users default timezone, and then converts it to that, from the server timezone.  This is for the IP logs any user can view on my site. I'm totally stumped...</p>
  
  <pre><code>    &lt;?php
      $SQLGetIP = $odb -&gt; prepare("SELECT * FROM `loginip` WHERE `username` = :username ORDER BY `loginip`.`date` DESC");
      $SQLGetIP -&gt; execute(array(':username' =&gt; $_SESSION['username']));
          $getInfo = $SQLGetIP-&gt;fetch_array();
  
      $query = $odb -&gt; prepare("SELECT * FROM `users` WHERE `id` = :id");
      $query -&gt; execute(array(':id' =&gt; $_SESSION['id']));
          $data = $query-&gt;fetch_array();
  
  
      $dt1 = $getInfo['date'];
      $tz = $data['timezone'];
      $dt = new DateTime("@".$dt1."");
      $dt -&gt; setTimeZone(new DateTimeZone($tz));
  
      $IP = $getInfo['logged'];
      $Date = $dt-&gt;format('F d, Y - h:i:s A');
  
          echo '&lt;tr&gt;&lt;td&gt;'.$IP.'&lt;/td&gt;&lt;td&gt;'.$Date.'&lt;/td&gt;&lt;/tr&gt;';
  
      ?&gt;
  </code></pre>