I have a following code for download option:
<a href='http://xyz.net/video/<?php echo $row['video_name']?>'
title='click to download this video'>
<img src="resources/images/icons/download.png"/>
Which works fine.
Now, I want to update my download table as
UPDATE video_uploaded SET downloaded = 1 WHERE video_id = '211'
//here video_id is dynamic and it's not a problem
How is it possible to add redirect to another page option on this snippet:
<a href='http://xyz.net/video/<?php echo $row['video_name']?>'
title='click to download this video'>
<img src="resources/images/icons/download.png"/>
so that when user clicks on Download button first it downloads the file and then updates the table.