Reputation: 307
I need to set a counter for the visitor of each page. the script for protect link this is example for link http://www.science-union.com/upload/m1.php?id=356
The database contains a table data
.
The table contains 5 fields for all links:
I added a new field and renamed it to download
and fetched it in PHP file but it still shows 0
.
look in example
before Download button
I need to php code increase the download number for every visitor of the page.
Upvotes: 1
Views: 3365
Reputation: 57721
UPDATE data SET downloaded = downloaded + 1
Is that what you're looking for?
Upvotes: 5