<div><h2>List a new blog</h2></div> <table class="table"> <thead> <tr> <th>Title</th> <th>Article Brief</th> <th>Created At</th> <th>Edit</th> <th>Delete</th> </tr> </thead> <tbody> <?php $blog = new blogClass(); $allArticle = $blog->selectArticle($_SESSION["user_id"]); while ($article = $allArticle->fetch_assoc()) { ?> <tr class="success"> <td><?php echo $article["article_title"]; ?> </td> <td><?php echo $article["article_brief"]; ?> </td> <td><?php echo $article["article_created_at"]; ?> </td>
<div><h2>List of Author</h2></div> <table class="table"> <thead> <tr> <th>Title</th> <th>Author Name</th> <th>Cheated At</th> <th>Edit</th> <th>Delete</th> </tr> </thead> <tbody> <?php $blog = new blogClass(); $allArticle = $blog->selectArticle(); while ($article = $allArticle->fetch_assoc()) { ?> <tr class="success"> <td><?php echo $article["article_title"]; ?> </td> <td><?php echo $article["article_brief"]; ?> </td> <td><?php echo $article["article_created_at"]; ?> </td>