in my mp3 downloading site script i need to put downloading button which function ( get.php?id=<?php echo $row['id'];?>')
so i would like to know how can i get mp3 downloading where id=$id with download count +1 each time download button hit.
Mp3 url = <?php echo $row['path'];?>
downloads = <?php echo $row['dcount'];?>
so i would like to know how can i get mp3 downloading where id=$id with download count +1 each time download button hit.
Mp3 url = <?php echo $row['path'];?>
downloads = <?php echo $row['dcount'];?>
PHP Code:
include('db.php');
$id=$_REQUEST['id'];
$query = "update files SET views = views+1 where id ='".$id."'";
$update = mysqli_query($con,$query) or die(mysql_error());
$query = "SELECT * from files where id='".$id."'";
$result = mysqli_query($con,$query) or die(mysql_error());
$row = mysqli_fetch_assoc($result);
Comment