I can't connect to mysql? : <p><a href="https://i.stack.imgur.com/GrzcU.png" rel="nofollow noreferrer">here is my code please help me to solve this prob.i think error is inside the function. compiler show error on line 9. thanks in advance  </a></p>

<pre><code>&lt;?php

class db_connector{
var $db_dsn="mysql:host=localhost;dbname=erp5_temp2";
var $db_username = "root";
var $db_password = "";
var $dbh ="";

    public db_connector(){  
        $dbh = new PDO($this-&gt;$db_dsn,$this-&gt;$db_username,$this-&gt;$db_password);
        $dbh-&gt;setAttribute(PDO::ATTR_EMULATE_PREPARES,TRUE);
    }
    public get_db_handler(){
        return $dbh;
    }
}
</code></pre>

<p>?></p>
