02.06.2013 Views

Pro PHP and jQuery by Jason Lengstorf.pdf - Computer Science ...

Pro PHP and jQuery by Jason Lengstorf.pdf - Computer Science ...

Pro PHP and jQuery by Jason Lengstorf.pdf - Computer Science ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

126<br />

CHAPTER 4 ■ BUILD AN EVENTS CALENDAR<br />

This class will have one property <strong>and</strong> one method, both of which are protected. The property will be<br />

called $db <strong>and</strong> will store a database object. The method will be a constructor; this will accept an optional<br />

database object to store in $db, or it will create a new PDO object if no database object is passed.<br />

Insert the following code into class.db_connect.inc.php:<br />

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

Saved successfully!

Ooh no, something went wrong!