Huhu Andreas
Was ich aber brauche ist: array("a" => Datensatz1.Spalte1,Datensatz2.Spalte1,Datensatz3.Spalte1,Datensatz4.Spalte1,Datensatz5.Spalte1) haben. (man beachte auch "a"=> wie komme ich daran?) Wie bekomme ich das hin??? Ich hatte auch versucht :
Vielleicht so:
$haystack=array();
while($row=mysql_fetch_array($result,MYSQL_ASSOC)){
$haystack[]=$row[Spalte1];
}
jetzt hast Du ein Array haystack, welches von allen Datensätzen Spalte1 enthält.
Der Rest ist einfach:
$arr=array('a'=> $haystack);
Viele Grüße
lulu