PHP-Code:
$query="select album_comments.id_comment as id_comment,
album_comments.comment as comment, ws_users.ID as id_user,
album_comments.id_bild as id_foto from ws_users,
album_comments where ws_users.ID=album_comments.id_user
AND ws_users.aktive='1' order by album_comments.datum DESC";
$result = mysql_query($query);
while ($row = mysql_fetch_array ($result))
{
$comm[ $row[id_foto] ][ $row[id_comment] ][ id_user ] = $row[ id_user ];
$comm[ $row[id_foto] ][ $row[id_comment] ][ comment ] = $row[ comment ];
}
PHP-Code:
[id_bild] => Array
(
[id_kommentar] => Array
(
[id_user] => 123456
[comment] => hello world :)
)
)
Kommentar