poorapagal
04-20-2004, 08:59 PM
hi all
i am trying to figure out how to get this to show the last added album on top.. any ideas? right now it shows in alphabetical order
thx
<?
$sql = mysql_query("SELECT s.song_id, a.artist_name, a.artist_id FROM songs s, artists a WHERE s.artist_id = a.artist_id and s.artist_id <> 1 GROUP BY artist_name ORDER BY song_id desc limit 10");
while($row = mysql_fetch_array($sql)){
echo "<option value=http://www.crazefm.com/stream/browse_artist.php?artist_id=" . $row['artist_id'] . ">- " . $row['artist_name'] . "</option>";
}
?>
i am trying to figure out how to get this to show the last added album on top.. any ideas? right now it shows in alphabetical order
thx
<?
$sql = mysql_query("SELECT s.song_id, a.artist_name, a.artist_id FROM songs s, artists a WHERE s.artist_id = a.artist_id and s.artist_id <> 1 GROUP BY artist_name ORDER BY song_id desc limit 10");
while($row = mysql_fetch_array($sql)){
echo "<option value=http://www.crazefm.com/stream/browse_artist.php?artist_id=" . $row['artist_id'] . ">- " . $row['artist_name'] . "</option>";
}
?>
