HI,
Yesterday I installed and tested Mysql, php 8 and Apache 2.4. Today I was using this book Learning PHP 7. I can't seem to get the code to display in a web page. Here is a copy of the code
Why is this not working?
Yesterday I installed and tested Mysql, php 8 and Apache 2.4. Today I was using this book Learning PHP 7. I can't seem to get the code to display in a web page. Here is a copy of the code
Code:
<?php
$looking = isset($_GET)['title']) || isset($_GET['author']);
?>
<!doctype html>
<html lang = "en">
<head>
<meta charset ="UTF-8">
<title>Bookstore</title>
</head>
<body>
<p><you looking'? <?php echo (int) $looking; ?> </p>
<p>The book you are looking for is </p>
<ul>
<li><b>Title</b>: <?php echo $_get['title']; ?></li>
<li><b>Author</b> <?php echo $_get[author']; ?></li>
</ul>
</body>
</html>