How to monitor last 10 long of your Gmail account?

Goole has included really interested tools in Gmail called account activity. The link of account activity can find at right hand side, bottom of your Gmail home page.
This tool is very useful if you want to know that your Gmail account when, what time and from which devise has been accessed. If you have suspicious about misuse of your Gmail account then this is one of the best ways to reach the final person, who is misusing your Gmail.
This tool offer such a good information about the last 10 log like date & time of an entry, location & IP address of the gadgets from where your Gmail has been accessed. Like I mention above about the link of account activity is available at right hand side, bottom of your Gmail home page. Now you know how to keep your eyes on the access of your Gmail?
User Comments
$sql = mysql_query("SELECT * FROM comment WHERE ap='y' and how_name='How to monitor last 10 long of your Gmail account"); $nr = mysql_num_rows($sql); if (isset($_GET['pn'])) { $pn = preg_replace('#[^0-9]#i', '', $_GET['pn']); } else { $pn = 1; } $itemsPerPage = 10; $lastPage = ceil($nr / $itemsPerPage); if ($pn < 1) { $pn = 1; } else if ($pn > $lastPage) { $pn = $lastPage; } $centerPages = ""; $sub1 = $pn - 1; $sub2 = $pn - 2; $add1 = $pn + 1; $add2 = $pn + 2; if ($pn == 1) { $centerPages .= ' ' . $pn . ' '; $centerPages .= ' ' . $add1 . ' '; } else if ($pn == $lastPage) { $centerPages .= ' ' . $sub1 . ' '; $centerPages .= ' ' . $pn . ' '; } else if ($pn > 2 && $pn < ($lastPage - 1)) { $centerPages .= ' ' . $sub2 . ' '; $centerPages .= ' ' . $sub1 . ' '; $centerPages .= ' ' . $pn . ' '; $centerPages .= ' ' . $add1 . ' '; $centerPages .= ' ' . $add2 . ' '; } else if ($pn > 1 && $pn < $lastPage) { $centerPages .= ' ' . $sub1 . ' '; $centerPages .= ' ' . $pn . ' '; $centerPages .= ' ' . $add1 . ' '; } $limit = 'LIMIT ' .($pn - 1) * $itemsPerPage .',' .$itemsPerPage; $sql2 = mysql_query("SELECT * FROM comment WHERE ap='y' and how_name='How to monitor last 10 long of your Gmail account"); $paginationDisplay = ""; if ($lastPage != "1"){ $paginationDisplay .= 'Page ' . $pn . ' of ' . $lastPage. ' '; if ($pn != 1) { $previous = $pn - 1; $paginationDisplay .= ' Back '; } $paginationDisplay .= '' . $centerPages . ''; if ($pn != $lastPage) { $nextPage = $pn + 1; $paginationDisplay .= ' Next '; } } while($row = mysql_fetch_array($sql2)){ echo "
{$row['name']} Says
". "Posted on: {$row['time']}
". "{$row['message']}
". "