Home  >  Article  >  Backend Development  >  Backfilling clicks for downloaded files_PHP Tutorial

Backfilling clicks for downloaded files_PHP Tutorial

WBOY
WBOYOriginal
2016-07-21 16:01:18957browse

The
table of the mysql database table named book is required to contain the following fields:
id Unique identification of the downloaded file
downnum Number of clicks

first.php
{
?>





click here download




ddload.php
include("data.inc.php");
if($incerror)
{
echo $incerror;
exit;
}
if(empty($dnnum)) $dnnum = 1;
else $dnnum ++;
$sql = "update book set downnum ='$dnnum' where id =$id";
mysql_query($sql);
mysql_close($connect);
header(" location:$purl");
?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/316884.htmlTechArticleThe mysql database table named book needs to contain the following fields: id The unique identifier of the downloaded file downnum Number of clicks first.php ?while($myrow = @mysql_fetch_array($result)) { ? TR T...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn