Steven Willett
-
Posts
2 -
Joined
-
Last visited
Posts posted by Steven Willett
-
-
Hi,
Just noticed the following error in Script 18.1 within Chapter 18. (Pg. 588)
This HTML syntax is incorrect:
<link rel="includes/layout.css">
The correct Syntax should be:
<link rel="stylesheet" href="includes/layout.css">
Hope this helps someone.
Erata Entry: Chapter 18, Script 18.10 Error
in PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (5th Edition)
Posted
Hi,
Just noticed the following code error for the
password_hash()
function used on page 626, line 34.
The code base shown in the book only passes 1 parameter,
// Incorrect number of parameters $ph = password_hash($p);
This function requires 2 parameters as outlined in the PHP docks here: https://www.php.net/manual/en/function.password-hash.php
This should probably be: (unless you wish to us a differnet constant based on your own project needs)
$ph = password_hash($p, PASSWORD_DEFAULT);
Hope this will help someone learning that may have gotten stuck on this project.