Oh one more thing Paul, I shouldn't have marked it as resolved but hope you see this.
I am calling this little function
function displayLatestList($release_items) {
/* Query for releases */
$result = mysql_query("
SELECT DISTINCT release_date
FROM cms_releases
WHERE release_date > CURDATE()
ORDER BY release_date ASC
LIMIT $release_items
");
/* END Query for releases */
while($row = mysql_fetch_assoc($result)){
$release_date = $row['release_date'];
$result2 = mysql_query("
SELECT *
FROM cms_releases
WHERE release_date = '".$release_date."'
ORDER BY artist ASC LIMIT $release_items
");
echo '<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr><td bgcolor="#CCCCCC" height="16"> <img src="/images/red_dot.gif" width="4" height="4" alt="" /> '.$release_date.'</td></tr>
</table>';
while($row2 = mysql_fetch_assoc($result2)){
$artist = stripslashes($row2['artist']);
$album = stripslashes($row2['album']);
//$picture = $row2['picture'];
echo '<p>' . $artist . ' - ' . $album . '</p>';
}
}
}
I'm sending it a number and would like to display the number of releases in the same format as you managed to supply in the earlier post. The date should be put in and if the number I send goes onto the next date, then I'd like to display that date and then list the remaining numbers under it.
It's just so I can display the most recent releases.
Thanks!