Click here to Skip to main content
15,867,883 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have table download

HTML
id  name     binary    statusactive    countdownload
1    1.doc   binary        1              0
2    2.pdf   binary         1             0

ia need query when user download file countdownload add
countdownload=countdownload+1

but iam want to know if a client completes a download successfully
then Increase countdownload in db
i want person download increase countdownload
XML
<pre lang="HTML">
id  name     binary    statusactive    countdownload
1    1.doc   binary        1              1
2    2.pdf   binary         1              10
</pre>
Posted
Updated 13-Oct-14 23:50pm
v3
Comments
Sergey Alexandrovich Kryukov 14-Oct-14 2:15am    
Why don't you know why it's successful? Probably you have been downloading it in a weird way.
—SA
[no name] 14-Oct-14 2:21am    
Have the Download call in an ajax and then from the Action return the flag, if success true else false and based on the flag make the count on ajax success checking the response.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900