Forum Moderators: coopster
I'm not sure if I'm outta whack here, but looking at the php date [php.net] function and what you have there I think I can see the problem. This should work, I would think:
echo date("D, n/j g:ia", $row_rs_event_data['ts']);
I find, that when I get to the "php isn't working right stage", I need to take a step back and look elsewhere, because everytime I've had an argument with PHP (once a week, maybe), in the end it was right ;-)
Perhaps your timestamp is wrong? I'm not sure, if you happen to have other "date data", you could verify your timestamp against the value output from mktime() [php.net].
$query = mysql_query("SELECT UNIX_TIMESTAMP(ts) as new_date FROM table");
$row = mysql_fetch_object($query);
Then use the date function with the optional timestamp parameter:
echo date("D, n/j g:ia", $row->new_date);
dc