020 555 1111
  • Old fashion, modular, procedural PHP plus some scaffolding techniques to allow it to mimic MVC simplicity.
  • A quick reference to help you find in PHP maze what needs to be done and how to do it.
  • Learn a PHP Object Oriented Programming by building a live discussion forum application.
  • MVC - Model View Controller - real life, easy reference and application.
This product has options, take a look at them and select ones you like the most.
Options are displayed under image section.

project wide exception handler
[MySQL PDO example]

You can use try/catch for every db query, but it is a pain.

try {
    //your code
} catch (PDOException $e) {
    print $e->getMessage();
}

 

There is a better way.
You can set project-wide exception handler. It is very easy.

//START: application global exception handler
//using this allows me to catch errors script-wide
//without a need to use localised try/catch
function exception_handler($exception) {
  echo $exception->getMessage(). "\n";
}
set_exception_handler('exception_handler');
//END: application global exception handler

 

Having above code in place, you can forget copying try/catch everytime, you choose to acces database.