<?php include_once $_SERVER["DOCUMENT_ROOT"] . DIRECTORY_SEPARATOR . "BITM_Mini_Project" . DIRECTORY_SEPARATOR . "Views" . DIRECTORY_SEPARATOR . "startup.php"; use App\BITM\SEIP107348\Phonebook\Phonebook; use App\BITM\SEIP107348\Utility\Utility; $view = new Phonebook(); $views = $view->index(); $trs = ""; ?> <?php $sl = 1; foreach ($views as $user) { $sl++; $trs .= "<tr>"; $trs .= "<td>{$sl};</td>"; $trs .= "<td>" . $user['name'] . "</td>"; $trs .= "<td>" . $user['email'] . "</td>"; $trs .= "<td>" . $user['password'] . "</td>"; $trs .= "<td>" . $user['birthday'] . "</td>"; $trs .= "<td>" . $user['file'] . "</td>"; $trs .= "<td>" . $user['operator'] . "</td>"; $trs .= "<td>" . $user['mobile'] . "</td>"; $trs .= "<td>" . $user['gender'] . "</td>"; $trs .= "<td>" . $user['hobbies'] . "</td>"; $trs .= "<td>" . $user['textarea'] . "</td>"; $trs .= "</tr>"; }