Php pdo sample class for preventing sql injection

This an sample class which is written in php using PDO for estabilishing database connection to the mysql.This class prevents sql injection by php prepared statements.