title: Date from MySQL returns NULL
body: <p>This is my table structure:</p>
  
  <pre><code>Datum (Timestamp)     |IP   |X (times visited)
  2012-09-08 14:09:44    *      10
  2012-09-08 13:20:01    *      34
  </code></pre>
  
  <p>I'm getting the data from mySQL using:</p>
  
  <pre><code>$Darray=array();
  $q="SELECT FROM Datum from ips ORDER BY X DESC";
  $rs=mysql_query($q) or die(mysql_error());
  while($rd=mysql_fetch_object($rs))
  {
  $Darray[]=$rd-&gt;X;
  }
  </code></pre>
  
  <p>But when i try</p>
  
  <pre><code>var_dump($Darray[1]);
  </code></pre>
  
  <p>I get NULL.</p>
  
  <p>I also tried using</p>
  
  <pre><code>SELECT FROM_UNIXTIME(Datum) from ips ORDER BY X DESC
  </code></pre>
  
  <p>But it doesn't change anything</p>