Hi,
I have a book called Learning PHP 7. Yesterday I installed Mysql, PHP 8 and Apache 2.4. Apache and php both work. I copied some code from the book into Notepad++. It does not work. Here is the 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>
I got rid of the misspelled words. I made a directory called book and put this file in there. I did a localhost/book. It did not work so I moved the file to htdocs, it still did not work. Right now I am baffled. Anyone have an idea what is wrong? Your help is appreciated.
Mark