Php Mysql Object Oriented Programming Inheritance