my select statement in php is
"select * from table";
i use following php statement to display date & time of mysql field
<?php
echo $row['mdate'];
?>
the result come like this
2010-03-09 16:59:18
i want to view the result i following format
09-03-2010 16:59:18
and
i want to view the result i following format
09-03-2010 4:59:18 PM
without defining any extra function. i can only modify my echo statement.
or
i can also modify my select statement
Thanks