the download counter does not create a new entry in the database, it updates an entry in the database.
checked: update download count in database
connection: the correct connection
table: the table name to hold the count information (which the dialog box found)
key column: keycolval field
key column value: <?php echo $row_Recordset1['serialno']; ?>
count column: countcol field
since you are using a recordset value for the key column value, make sure the code for the recordset is before the code for the download.
also, if the recordset has any filters, those will need to be included in the form submit.
If you need further details, send a copy of your page in a zip archive so I can see the entire page code.