Hi,
Also mach ich mal von anfang an.
Das waere nicht noetig, wenn du die Hinweise, die du bekommen hast, beachten wuerdest ...
while ($assoc = mysql_fetch_assoc($query)) {
$array = array_unique($assoc);
Was soll denn der Unfug?
Du holtst dir hier einen Datensatz-Inhalt, der nur aus einer Spalte besteht, als Array.
Und auf dieses eine Array mit diesem einen Wert wendest du dann array_unique an - nicht besonders sinnvoll, hm?
So im $assoc sind die ids gespeichert 85,86,85,86,87
Nein, sind sie nicht. Zumindest nicht bei dem Code, den du gezeigt hast.
in $array müsste jetzt theoretisch stehen 85,86,87
Nein, wie denn auch.
MfG ChrisB
--
„This is the author's opinion, not necessarily that of Starbucks.“
„This is the author's opinion, not necessarily that of Starbucks.“