What is the simplest, fastest way to complete the PHP code below such that the output is in a user-friendly format (for example, ‘October 27, 2006’)?
$result = mysql_query('SELECT my_timestamp FROM some_table WHERE id=42', $DB_CONN); $row = mysql_fetch_array($result); $formatted_date = ???($row['my_timestamp']); echo $formatted_date;
You could use MySQL to do this for you,
Or use PHP,