Hallow allemaal!
Dit is een scriptje om uit de tabel "links" links te halen met de categorie er boven. Nu, in alle categorien waar 2 links in staan, word de categorie 2 keer getoond! Hoe komt dit?
Ik zie het ff niet.

Wie wel.....?

include('connect.php');
$sql="SELECT categorie FROM links ORDER BY categorie";
$result = mysql_query($sql);
while($row = mysql_fetch_array($result))
{
echo "<b>" . $row[categorie] . "</b><br>";
$xsql="SELECT * FROM links WHERE categorie = '" . $row[categorie] . "'";
$xresult = mysql_query($xsql);
while($xrow = mysql_fetch_array($xresult))
{
echo "<a href='" . $xrow['pad'] . "' target='_new'>" . $xrow['kop'] . "</a><br>";
}
}
PROBLEEM IS ONDERTUSSEN AL OPGELOST!!!!!

Reageren