- Code: Select all
if(isset($query)){
$this->PDOstmt = $this->PDOlink->prepare($query);
$this->PDOstmt->execute();
// $this->PDOstmt->setFetchMode(PDO::FETCH_BOTH);
$res = $this->PDOstmt->fetch();
if ($this->debugOutput) $this->debug('exec_SELECTquery');
return $res;
}
else{
return NULL;
}
wobei folgendes rauskommt:
- Code: Select all
Fatal error: Call to a member function execute() on a non-object in /xxx/xxx/xxxxx/xxxxxx/xxxx/class.xxxxxxx.php on line xxx
keine ahnung was ich falsch mache
edit: ein var_dump($this->PDOstmt);
ergibt:
- Code: Select all
PDOStatement Object x [queryString]=>Select * From....