function output_chat($array, $count, $id) { $chat_id = $array[$id]['id']; $chat_name = $array[$id]['name']; $chat_text = $array[$id]['text']; $chat_date = $array[$id]['date']; $chat_layer = $count; include "templates/chat_posting.php"; if ($array[$id]['RE'] != "") { output_chat($array[$id]['RE'], $count + 1, 0); } if (isset($array[$id + 1])) { output_chat($array, $count, $id + 1); } }
<?php //header einfügen $seite = "Chat"; include "templates/overall_header.php"; ?> <h2 align="center">Chat</h2> <?php include "templates/chat_formular.php"; if ($_GET['re_id'] == -1) { output_chat($output, 0, 0); } //templates/chat_posting.php ?> <?php include "templates/overall_menu.php"; ?> </body> </html>