Hey there i am just starting to try pdo in OO. I am getting this error Call to a member function prepare() on a non-object
I have a constructor
and then i am calling the prepare like soPHP Code:public function __construct($pdo){
$this->pdo = $pdo;
}
for those of you that work with pdo in OO how do you set it up. Am i on the right track?PHP Code:$this->pdo->prepare($query)
Thanks in advanced!



Reply With Quote
Bookmarks