How can include() function be used to display content in the middle column when clicking on a link in PHP?

To display content in the middle column when clicking on a link in PHP, you can use the include() function to dynamically load the content from another PHP file. You can create separate PHP files for different sections of content and use JavaScript or PHP to handle the click event and load the appropriate file into the middle column.

<?php
if(isset($_GET['page'])) {
    $page = $_GET['page'];
    include($page . '.php');
} else {
    include('default.php');
}
?>

<a href="?page=content1">Load Content 1</a>
<a href="?page=content2">Load Content 2</a>
<a href="?page=content3">Load Content 3</a>