Assoziatives Array
Verfasst: 30.03.2006 20:00
Hallo,
ich brauche noch mal etwas Unterstützung:
$result ist nach dem Query ein assoziatives Array.
In $result2 kommt alles mögliche an, aber leider nicht der Inhalt von $result. $result2 ist dann offenbar kein assoziatives Array.
Wie bekomme ich den Inhalt der Variable $result in die Variable $result2? Und wie wird $result2 typgleich?
LG
LuLa
ich brauche noch mal etwas Unterstützung:
Code: Alles auswählen
$result = mysql_query("SELECT username FROM ".$phpBB_table_prefix."users WHERE user_id =" . $post["poster"]);
$result2 = $result;
In $result2 kommt alles mögliche an, aber leider nicht der Inhalt von $result. $result2 ist dann offenbar kein assoziatives Array.
Wie bekomme ich den Inhalt der Variable $result in die Variable $result2? Und wie wird $result2 typgleich?
LG
LuLa