if(isset($_POST["fileDownload"])){
include 'connectdb.php';
$sql = "insert into downloadTB(filename,statcount) values('{$_POST["fileDownload"]}', (select statcount+1 from downloadTB where filename='{$_POST["fileDownload"]}') )";
mysqli_query($sql) or die(mysqli_error());
}
if(isset($_POST["fileDownload"])){
include 'connectdb.php';
$sql = "insert into downloadTB(filename,statcount) values('{$_POST["fileDownload"]}', (select statcount+1 from downloadTB where filename='{$_POST["fileDownload"]}') )";
mysqli_query($sql) or die(mysqli_error());
echo "เริ่มต้นดาวน์โหลด + นับจำนวนครับ";
}