I have started a project in PHP with PDO and I'm almost done, but I've read somewhere that PDO escape alone is not secure and we have to consider some settings of PDP. I am a little confused about my PDO class and usage.public function __construct(){    //set DNS    $dns = 'mysql:host=' . $this->host . ';dbname=' . $this->dbname.';charset=utf8';    //set options    $options = array(PDO::ATTR_PERSISTENT => true, PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::MYSQL_ATTR_INIT_COMMAND => SET NAMES utf8,PDO::ATTR_EMULATE_PREPARES => false );    //create a new PDO instance    try{        $this->dbh = new PDO($dns, $this->user, $this->pass, $options);    } //catch any errors    catch(PDOException $e){        $this->error = $e->getMessage();    }}public function query($query){    $this->stmt = $this->dbh->prepare($query);}public function bind($param, $value, $type = null){    if(is_null($type)){        switch(true){            case is_int($value):                $type = PDO::PARAM_INT;                break;            case is_bool($value):                $type = PDO::PARAM_BOOL;                break;            case is_null($value):                $type = PDO::PARAM_NULL;                break;            default:                $type = PDO::PARAM_STR;        }    }    $this->stmt->bindValue($param, $value, $type);}public function execute(){    return $this->stmt->execute();}public function resultset(){    $this->execute();    return $this->stmt->fetchAll(PDO::FETCH_OBJ);}public function single(){    $this->execute();    return $this->stmt->fetch(PDO::FETCH_OBJ);}public function rowCount(){    return $this->stmt->rowCount();}Queries:$db->query(SELECT * FROM XYZ WHERE some=:some);$db->bind(':some', $$somevar);$result= $db->resultset();   ///for select$result= $db->single();  ///if we want single rowFor inserting and updating:$db->query(INSERT INTO XYZ (x,y,z) VALUES (:x,:y,:z));$db->bind(':x', $x);$db->bind(':y', $y);$db->bind(':z', $z); $db->execute();Is there anything wrong which will affect me in future? I have searched many things for PDO and have updated my class accordingly, but I want to be sure about my project.
PDO class and security
php;security;pdo;wrapper