How to insert time 2009-09-22 18:09:37.881
in mysql. Actually I can insert and retrieve the time 2009-09-22 18:09:37
in mysql but whenever I am try
# PHP
$microtime = microtime(true);
$datetime = date("Y-m-d H:i:s");
?>
ADD: INSERT INTO your_table (col_datetime,col_microtime) values ('$datetime','$microtime')
List new->old: SELECT * FROM yout_table ORDER BY col_microtime DESC
List old->new: SELECT * FROM yout_table ORDER BY col_microtime