Learning PHP, MySQL, JavaScript, CSS, & HTML5, 3rd Edition

Thanks for downloading these examples

All the files are in the folders named 2 through 26 of this archive, according to the chapters from which they are taken. You will need a web server installed (such as XAMPP) to run many of the examples - please see the new Chapter 2 for full details.

As well as being saved in their chapter number folder, the Robin's Nest example files are also in the folder robinsnest, so that you can copy the folder to a web server to try for yourself. Please read the final chapter for details on setting up the database etc. Examples that require specific file names to run are also saved in the named_examples folder. All the other information you need to run, understand and modify these examples can be found in the book.

Since publication, Chapter 11 has been updated with information on using placeholders and prepared statements with the mysqli extension. The revised chapter is availablefor you to read in the 11 folder. There has also been some discussion as to why the document.write() function is used in this book. If you're interested please read this explanation.

For the latest news on this book, including any errata that have been discovered since its publication (and any updates to these files), please visit the website.

Free Bonus

This book also includes a free license for CSE HTML Validator Standard v12 for Windows, an HTML and CSS editor and validator, which can also check PHP syntax with an additional free download. Use this product to validate your web projects so that they are less likely to contain bugs, and are more likely to run on as many different platforms as possible.

To start using your free license, please download and install the program.

To register the program, please:

  1. Install and run CSE HTML Validator
  2. Select the license key in the panel below
  3. Press Ctrl-C to copy the key
  4. Choose 'Register Program' from the CSE HTML Validator 'Help' menu
  5. The license information will be automatically entered into the registration dialog