I have a php script that gets a string from my MySQL database and puts certain elements into variables.
PHP Code:
<?php
$connection = mysqli_connect('database','user','pw','the_sleeper');
$audiopath = mysqli_query($connection,"select * from the_sleeper");
$row = mysqli_fetch_array($audiopath);
$audio=$row['audiopath'];
$title= $row['title'];
?>
Now I want these two variables on to my main page. I want the audiopath to be passed to an audio embed tag and title to be passed into a heading tag. How can I do this?
Here is the link to the page I will be passing them to:
http://www.j10thesleeper.net84.net/J...rhomepage.html
Thank you all for your time!