Hi All,
As usual I here with a PHP & MySQL problem.
Most of you know, I am developing Music Download system.
Today I have created Widget to display last 5 songs.
<?php
include('datab.php');
$get = "SELECT * FROM `songs` ORDER BY `id` DESC";
$getres = mysql_query($get) or die(mysql_error());
if(mysql_num_rows($getres)> 0)
{
while ($row = mysql_fetch_array($getres))
{
echo $row['name'] . "<br>";
}
}
?>
But there is a problem.
I am saving artists to another table call, songartists
, beacuse some songs have more than one artist.
I want to add 'Song Name - Artist'
How can I get data to this echo from songartists