I use this to get an echo of most recent log in my database.
it echos the timedate stamp but you could alter that to what you want to see
<?php
require_once "connect_to_mysql.php";
//execute the SQL query and return records
$res = mysql_query("SELECT * FROM lastsent ORDER BY id DESC LIMIT 1");
//fetch tha data from the database
while ( $row = mysql_fetch_array($res) ) {
echo date("g:i a F j, Y ", strtotime($row["dateTime"])) . "<br />";
}
//close the connection
mysql_close();
?>