Counter not writing value to DB
I've just created a simple file download based on a recordset query.
This works fine, however, i'm trying to figure out why the download count isnt writing to my table.
Here is the code i believe should be posting an incrememnted value nto my table
<?php
WA_DFP_SetupDownloadStatusStruct("WA_DownloadResult1");
if(isset($_POST["button"])){
WA_DFP_DownloadFile("WA_DownloadResult1", "../", "cabinet/cp_digital_download.doc", "[FileName]", 1, $database_MY_DB, $MY_BB", "cp_users", "UserID", "".$_SESSION['UserID'] ."", "UserDLCount");
}
?>
Any clues welcome.
Paul.