bubble_chart StackLab

CRUD Web Application Using Php Data Objects

5 steps · pending Not started · person_outline Guest
arrow_back Back

Create your HTML Sections

On the HTML portion within the body part add the following script within the <body>...</body> tags:

code php
<h1>Simple PHP PDO CRUD</h1>

<!-- Simple Navbar -->
<nav>
    <a href="index.php?section=students">Students</a> |
    <a href="index.php?section=books">Books</a> |
    <a href="index.php?section=borrow">Borrow</a>
</nav>

<hr>

<!-- Students Section -->
<?php if($section === 'students'): ?>
     <h1>Students</h1>
<?php endif; ?>

<!-- Books Section -->
<?php if($section === 'books'): ?>
     <h1>SBooks</h1>
<?php endif; ?>

<!-- Borrow Section -->
<?php if($section === 'borrow'): ?>
     <h1>Borrow</h1>
<?php endif; ?>

login Sign in to save your progress permanently. info Progress is saved in your browser session
format_list_numbered Step 4 of 5