Learning PHP, MySQL & JavaScript

Errata for Learning PHP, MySQL & JavaScript

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date Submitted
PDF Page 24-22
Example 24-22 Manipulating image data.html

Robin Nixon/5th_edition_examples/24/example24-22.html Please advise how to make the manipulated image display in Firefox 71(32 bit) and Opera 55 on Windows 7? The manipulated image in example24-22.html works in Internet Explorer 11.09600.19572 and k-meleon K-Meleon/76.0; however, it’s suppressed in Firefox 71(32 bit) and Opera 55, on Windows 7: only the lightblue canvas shows up to the right of the original image Console log / debugger states : SecurityError: The operation is insecure. example24-22.html:21; debugger points to idata = context.getImageData(0, 0, myimage.width, myimage.height). A search on the internet -> https://developpaper.com/explain-how-to-solve-the-cross-domain-problem-of-canvas-image-getimagedata-todataurl/ -> states use AJAX, which seems a complex way of resolving the problem Please advise how to make the manipulated image display in Firefox 71(32 bit) and Opera 55 on Windows 7? Many thanks

Nevil  Dec 24, 2019 
Printed Page 50-51
Example 3-7

The examples 3-6 to 3-9 are all very similar. 3-6, 3-8, and 3-9 all echo their output, either directly or via variable; 3-7 does not. I assume this is a mistake, the echo line should be similar to 3-9.

Anonymous  Jan 21, 2020 
Printed Page 111
Chapter 5, from example 5-14 till end of chapter 5

from exaple 5-14 till the end of the chapter the example numbers are different from the file names. Edition 5 is affected. Minor nuisance. Great book to follow learning along!

Joe Ehrensberger  Dec 30, 2019 
Printed Page 491
Example 20-8

In Chrome and Brave, the code for Example 20-8 never forces a DOM refresh, and therefore the new element with contents "I'm a new object inserted in the DOM" never appears on screen. (The code for Example 20-8 DOES work in Firefox and Internet Explorer.)

Jeff  Feb 06, 2020