I’m learning PHP

Photo of Page 44 of Learning PHP and MySQL showing the error in testing

Photo of Page 44 of Learning PHP and MySQL showing the error in testing

Earlier I was sitting in Panera Bread reading Learning PHP and MySQL (which I now feel bad about purchasing as the second edition was out when I did so) and I came across this glaring error.  I just thought it was funny and took a picture with my iPhone so I wouldn’t forget.  On the next page (page 46, actually) they had a code sample demonstrating that you should put backslashes before quote symbols, and were using specialH2 inside of a class to demonstrate when you might forget to put backslashes.  At the end of their code sample, after ?>, was specialH2.  It didn’t actually need to be there, and I’m sure it’ll confuse a new programmer, but it’s there anyway.  Later on (Chapter 4) they start wrapping their text after echo commands in parentheses, but don’t tell the reader why (however on this one, I may have missed something, and if I have please let me know).

I almost always find errors in books, and I want a good way to report these bugs.

WP Greet Box icon
Hello there! If you are new here, you might want to subscribe to the RSS feed for updates on this topic.

Leave a Comment