probably missing something simple:
<?php
$con=mysql_connect('localhost','xxx','xxx');
$db=mysql_select_db('xxx');
$sql = mysql_query("SHOW TABLE STATUS WHERE `name`=\"my_table\"");
$foo=mysql_fetch_array($sql);
return $foo['Update_time'];
// returns 2010-03-31 16:51:06
?>
how do i format this. I tried using
date('l jS F Y @ H:i:s', $foo['Update_time']);
but this returns:
Thursday 1st January 1970 @ 01:33:30
presumably as date() expects a timestamp.
thanks..im sure this is very obvious but my minds gone blank