$query4="SELECT calldate FROM cdr WHERE dst = '801' OR dst = '802' ORDER BY calldate DESC"; $result4=mysql_query($query4); $temp4=mysql_fetch_array($result4); how comes it outputs Array, but if I run the query within mysql I get 2007-06-01 10:06:16, how comes its not out putting this in php?