D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
home
/
markniuj
/
.vscode-server
/
data
/
User
/
History
/
5a64f5cf
/
Filename :
KTFm.php
back
Copy
<?php include "../config.php"; // Retrieve the audio file's ID from the query string if (isset($_GET['id']) && is_numeric($_GET['id'])) { $audio_id = $_GET['id']; // Query to select the specific audio file $query = "SELECT * FROM audio_files WHERE id = $audio_id"; $result = $conn->query($query); if ($result && $result->num_rows > 0) { // Fetch audio file details $row = $result->fetch_assoc(); $english_title = $row["english_title"]; $urdu_title = $row["urdu_title"]; $speaker = $row["speaker"]; $category = $row["category"]; $audio_filename = $row["audio_filename"]; $image_filename = $row["image_filename"]; $hits = $row["hits"]; } else { echo "Audio file not found."; } } else { echo "Invalid audio file ID."; } // Close the database connection $conn->close(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Download and listen Quran,Naat,Ashaar,Audio Bayan</title> <link rel="stylesheet" href="css.css"> </head> <body> <header> <div class="logo"><img src="logo.png"></div> </header> <div class="mainbody"> <div class="bodyarea"> <div class="dextop"> <h2><?php echo $english_title; ?></h2> <h3><center><?php echo $urdu_title; ?></center></h3> <h5>Mian Category >>> <?php echo $category; ?> </h5> <h2><?php echo $speaker; ?></h2> <h1><img src="uploads/images/<?php echo $image_filename; ?>" alt="Urdu bayan"></h1> <!-- Display the audio player --> <audio controls> <source src="uploads/audio/<?php echo $audio_filename; ?>" type="audio/mpeg"> Your browser does not support the audio element. </audio> <!-- Provide a link to download the audio file --> <p><a href="uploads/audio/<?php echo $audio_filename; ?>" download><h1>Download</h1></a></p> <!-- Display the hit counter --> <p>Hit Count: <?php echo $hits; ?></p> </div> </div> </div> <footer> <a href="https://webograph.pk/">Site BY Webograph.pk</a> </footer> </body> </html>