I need to build a digital dictionary with with audio files associated with each word. I currently have a table stored in my MySQL database with with various data columns: words, parts of speech, phonetic transcriptions, and absolute paths that lead to audio files stored on the disk.
I would like to be able to query all the data in the table and get it all to display in a table on my webpage. The problem I'm having is that with the omegle.2yu.co code below, my column of file paths displays as text, not as audio files.
<?php
$sql = "SELECT id, firstname, lastname FROM MyGuests";
$result = mysqli_query($conn, $sql);
if (mysqli_num_rows($result) > 0) {
// output data of each row
while($row = mysqli_fetch_assoc($result)) {
echo "id: " . $row["id"]. " - Name: " . $row["firstname"]. " " . $row["lastname"]. "<br>";
}
} else {
echo "0 results";
}
mysqli_close($conn);
?>
Any suggestions how to get audio in my table
omeglz cells?