I have a date formatting question, that is probably kinda simple...for some.
This is my code:
global $conn;
$str = "select * from _last_actions order by dateofaction desc limit 10";
$rs = db_query($str,$conn);
while ($data = db_fetch_array($rs))
echo $data["dateofaction"].": ".$data["action"]."<br>";
I want to make the "dateofaction" field to look like this:
date("m/d/y at g:i a"); or
12/15/2007 at 12:07 am
But I don't know where to put it, or if it is even right😕 .