echo '<tr><td>' . $row->cat_id . '</td><td>' . $row->isbn . '</td></tr>'; } echo "</table>"; } // calling function from class to display all stored date from table authors $authors = books::allbooks("author"); if ($authors !== false) { echo "<h1> Author Table </h1>"; print "<table>\n <tr>\n <th> author_id </th>\n <th> f_name </th>\n <th> l_name </th>\n </tr>"; foreach ($authors as $row) { echo '<tr><td>' . $row->author_id . '</td><td>' . $row->f_name . '</td><td>' . $row->l_name . '</td></tr>'; } echo "</table>"; } // calling function from class to display all stored date from table authors $authors = books::allbooks("authorbook"); if ($authors !== false) { echo "<h1> Authorbook Table </h1>"; print "<table>\n <tr>\n <th> isbn </th>\n <th> author_id </th>\n </tr>"; foreach ($authors as $row) { echo '<tr><td>' . $row->isbn . '</td><td>' . $row->author_id . '</td></tr>'; } echo "</table>"; } ?> </div> <?php include "includes/footer.inc.php"; ?>