Ex:
<?php
//i suppose you successfully connected to your db
//First get the old download_count:
$q = mysql_query("Select download_count, file_path from your_table where id=$_GET['file_id']");
$row =mysql_fetch_array($q);
//now add 1
$row['download_count']++;
//update your record
mysql_query("UPDATE your_table SET download_count = $row[download_count] WHERE id=$_GET[file_id]");
//now send your file:
header("Location: $row[file_path]");
?>
i hope it works.
😉