I have this code and I want to get the url from a MySQL database.
But the $urls should contain the https:\...xyfile.mp3 URL from the database.
can anybody help? It may be a syntax error somewhere.
while($row = mysqli_fetch_assoc($result))
{
extract($row);
echo "<tr bgcolor=\"#FED9AF\">\n
<td width=\"30%\">$artist_name</td>\n
<td width=\"12%\">$song_name</td>\n
<td width=\"50%\" align=\"center\">
<audio controls>
<source src=\"$url\" type=\"audio/mpeg\">
</audio>
</td>\n
<td width=\"0%\">
<a href=\"$url\"><img src = '../View/images/download.png'></a>
</td>\n
</tr>\n";
}
echo "</table>\n";
Edit: i tried a single audio
<audio controls="controls">
<source src="http://torejo.atw.hu/Elektronomia%20-%20Limitless.mp3" />
</audio>
and Its isn't not working too... ??