13.09.2016 Views

PHP and MySQL Web Development 4th Ed-tqw-_darksiderg

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Next<br />

203<br />

pression operator. If it fails, <strong>PHP</strong> will issue a warning that may or may not be reported<br />

or logged depending on the error reporting settings in php.ini.These settings are discussed<br />

at length in Chapter 26, but you need to know that this warning will still be<br />

issued regardless of whether you raise an exception.<br />

Further Reading<br />

Because exception h<strong>and</strong>ling is new to <strong>PHP</strong>, not much has been written on the subject.<br />

However, basic information about exception h<strong>and</strong>ling is plentiful. Sun has a good tutorial<br />

about what exceptions are <strong>and</strong> why you might want to use them (written from a<br />

Java perspective, of course) at http://java.sun.com/docs/books/tutorial/essential/<br />

exceptions/h<strong>and</strong>ling.html.<br />

Next<br />

The next part of the book deals with <strong>MySQL</strong>.We explain how to create <strong>and</strong> populate a<br />

<strong>MySQL</strong> database <strong>and</strong> then link what you’ve learned to <strong>PHP</strong> so that you can access your<br />

database from the <strong>Web</strong>.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!