D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
proc
/
thread-self
/
root
/
home
/
markniuj
/
bazmeasar.com
/
Filename :
details11.php
back
Copy
<?php // Database connection parameters 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> <div class=""images></div> <h1><img src="admin/uploads/images/<?php echo $image_filename; ?>" alt="Urdu bayan"></h1> <!-- Display the audio player --> <audio controls> <source src="admin/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="admin/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> <!-- Add custom share buttons --> <div class="share-buttons"> <a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo urlencode('https://quranplatform.com/audio/pagination/details.php?audio_id=' . $audio_id); ?>" target="_blank"> Share on Facebook </a> <a href="https://twitter.com/intent/tweet?url=<?php echo urlencode('https://quranplatform.com/audio/pagination/details.php?audio_id=' . $audio_id); ?>&text=<?php echo urlencode($english_title); ?>" target="_blank"> Share on Twitter </a> <a href="https://www.linkedin.com/sharing/share-offsite/?url=<?php echo urlencode('https://quranplatform.com/audio/pagination/details.php?audio_id=' . $audio_id); ?>" target="_blank"> Share on LinkedIn </a> </div> <!-- Rest of your page content --> <footer> <a href="https://webograph.pk/">Site BY Webograph.pk</a> </footer> </body> </html>