pragmaMx Support Forum

pragmaMx => Vorabversions Testforum => pragmaMx 2.0 => Thema gestartet von: Webfan am 13 Januar 2015, 07:38:59

Titel: PDO::errorInfo
Beitrag von: Webfan am 13 Januar 2015, 07:38:59
Hallo Olaf,
folgende Meldung:
ZitatFatal error:  Non-static method PDO::errorInfo() cannot be called statically in /**/includes/classes/Db.php on line 316


public static function sql_error()
{
$tmp=PDO::errorInfo();
return $tmp;

}


http://php.net/manual/en/pdo.errorinfo.php
ZitatPDO::errorInfo() only retrieves error information for operations performed directly on the database handle. If you create a PDOStatement object through PDO::prepare() or PDO::query() and invoke an error on the statement handle, PDO::errorInfo() will not reflect the error from the statement handle. You must call PDOStatement::errorInfo() to return the error information for an operation performed on a particular statement handle.
Oder Instanz verwenden $this->errorInfo() ???

Der Fehler tritt bei meinem Modul auf, Seite geht.

Viele Grüße
Till
Titel: Re:PDO::errorInfo
Beitrag von: Olaf am 13 Januar 2015, 07:42:43
ist bei mir schon gefixt, kommt im nächsten Update mit
Titel: Re:PDO::errorInfo
Beitrag von: Webfan am 13 Januar 2015, 08:07:21
Ok, Danke  :bye: