| Current Path : /var/www/html/mmishra/indem/iiita/ |
| Current File : /var/www/html/mmishra/indem/iiita/downloads.php |
<?php
include "functions.php";
dbConnect();
$filename = $_REQUEST["filename"];
$tbl = "guzette";
hitmeter($filename);
if ($filename) {
if (mysql_num_rows(mysql_query("select * from $tbl where filename='$filename'"))) {
mysql_query("update $tbl set counter=counter+1 where filename='$filename'");
}
header("location: $filename");
} else {
echo "File not attached";
}
?>