Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/iws8/html/pcstore/backupxxxxxxx/
Upload File :
Current File : /var/www/html/mmishra/iws8/html/pcstore/backupxxxxxxx/query_access_log.php

<?php

$tbl = "access_log";
$submit = $_POST["submit"];
$dated = $_REQUEST["dated"];
if ($dated == "") $dated = date("Y-m-d");

echo "<b>Access Log</b><p>";
echo "Datd <input type='text' name='dated' value='$dated' size='10'> (yyyy-mm-dd) <input type='submit' name='submit' value='FILTER'><p>";
//$sql = "select login,date_format(dated,'%H-%I-%i') as time,activity from $tbl where dated like '$dated%' order by row_id";
$sql = "select concat(concat(concat(concat(activity,'<b> by</b> '),login),' <b>at</b> '),date_format(dated,'%H:%I:%i')) as access from access_log where dated like '$dated%' order by dated";
$rs = mysql_query($sql);
$rno = mysql_num_rows($rs);
if (!$rno){
  echo "Database has not been updated on above date<p>";
}else{
  echo "Total $rno changes has been made in database as follows:<p>";
  //show table data
  echo table_data($sql, 0, $tbl);
}
?>