01.
02.
$strSQL
=
"UPDATE files SET Download = Download + 1 WHERE id = '"
.
$_GET
[
"id"
].
"' "
;
03.
$objQuery
= mysql_query(
$strSQL
);
04.
05.
$strSQL
=
"SELECT * FROM files WHERE id = '"
.
$_GET
[
"id"
].
"' "
;
06.
$objQuery
= mysql_query(
$strSQL
);
07.
$result
= mysql_fetch_array(
$objQuery
);
08.
09.
header(
"location:"
.
$result
[
"FilePath"
]);
10.
exit
();