Hello!
I am fetching some names from MySQL and i want to remove duplicated strings.
Currently got this code:
function get_PublicAlbums(){
$sql = "SELECT * FROM `ue-userfile` WHERE public=1";
$result = mysql_query($sql);
$html = "";
while($row = mysql_fetch_array($result))
{
$albumname = $row['albumname'];
$html .= '<p><a href="index.php?page=public-albums&an='.$albumname.'">'.$albumname.'</a></p><br/>';
}
/* It might be more than one $row['albumname'](Nature) so i only want to show one of them.
I need some help on that logic, i might be dumb. */
return $html;
}
Regards,
Morten(Norway)