• 0

How- Php - counting


Question

Im makeing a download script for php and i was wondering how i can make it count how meany times it has been downloaded...

example -

Utility

- dose this and that - Downloaded # Times

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

if you store the download info in a DB

// 1 generate and execute query

$query = "UPDATE skins SET downloads = downloads +1 WHERE id = '$id'";

$result = mysql_query($query) or die ("MySQL Error - 2");

just edit to need

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.