Quote:
Originally Posted by Danny.VBT
Just concat the HTML output in the loop.
PHP Code:
$tracks = mysql_query("SELECT trackartist, tracktitle FROM tracklisting");
$tracks_bit = '';
while($track = mysql_fetch_array($tracks, MYSQL_ASSOC)
{
$tracks_bit .= '<p>' . $track['trackartist'] . ' - ' . $track['tracktitle'];
}
Then register the variable, and you should have the correct output.
|
I knew I was missing something simple! Your code works! Thank you so much!