Hello,
I have a table which holds all the album name of diffferent artist. I have the following code:
<?php
include "dbconnect.php";
$link=dbconnect();
$query=("select *from album group by artist;");
$result=mysql_query($query);
if(!mysql_num_rows($result))
{
echo"<script>alert (\\"No Record Found!!!\\");history.go(-1)</script>";
}
else
{
while ($row=mysql_fetch_array($result))
{
echo $row["artist"];
}
}
?>
the above code works but it displays :
Metallica
Ironmaiden
Dream theatre
Bonjovi
GNR
Doors
but I want it to be display as:
Metallica Ironmainden Dream theatre
Bonjovi GNR Doors
Also i want to have a link with every name which will represent itself.
anyone can help me please??