Abbreviated string from MySQL 'time' field type in PHP?

I don't have a machine to test it on at the moment, but I would look at: strtotime and date I believe that the following should be what you want: $print_time = date("h. Ia", strtotime($sql_time)) Where $print_time is the pretty printable time string and $sql_time is the SQL timestamp string.

I don't have a machine to test it on at the moment, but I would look at: strtotime and date. I believe that the following should be what you want: $print_time = date("h. Ia", strtotime($sql_time)); Where $print_time is the pretty printable time string and $sql_time is the SQL timestamp string.

If you don't mind changing you MySQL code you can just use MySQL's DATE_FORMAT() on the fetc: SELECT DATE_FORMAT(table_name. Time_col, '%l:%i %p') AS myFriendlyDate.

DATE_FORMAT will allow you to manipulated it however you want. Or any of the other functions may help you with it ... dev.mysql.com/doc/refman/5.5/en/date-and....

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions