Create your HTML Sections
On the HTML portion within the body part add the following script within the <body>...</body> tags:
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; ?>
Sign in to save your progress permanently.
Progress is saved in your browser session
Step 4 of 5