Menu
Hi,
I’m trying to extract the timestamp in a mySQL file and display it as a real date/time.
Here’s what I’ve got…
$rsi = mysql_query($qri, $link);
$rwi = mysql_fetch_array($rsi);
$stamp = $rwi[‘FIstamp’];
$dte = strtotime($stamp);
$showdate = date(“F d, Y H:i”,$dte);
It returns $dte = -1, which, of course, then displays as a date in 1969 (the first possible date)
If I skip the strtotime() function, and try to make $showdate using $stamp, i get a date in 2038, the last possible date.
Now I’m clueless. (Perhaps I always was.)
Help much appreciated, as always.
Thanks
CTB