| Anatomy Of An Exception |
An example might make this clearer. Consider the following simple line of code,
colours = "red";
''.preg_replace(array('/ /', '/ /'), array(' ', ' '), '
An error has occurred in the script on this page.
Error: 'colours' is undefined
You can see this from the first few lines of the output, which describe the exception, together with the variable that caused it.
How to do Everything with PHP & MySQL
How to do Everything with PHP & MySQL, the best-selling book by Melonfire, explains how to take full advantage of PHP's built-in support for MySQL and link the results of database queries to Web pages. You'll get full details on PHP programming and MySQL database development, and then you'll learn to use these two cutting-edge technologies together. Easy-to-follow sample applications include a PHP online shopping cart, a MySQL order tracking system, and a PHP/MySQL news publishing system.
Read more, or grab your copy now!