Good afternoon, I am trying to make a connection PDO_informix, within the event Row_Inserted, but an error is displayed
I also tried to put the code line in a function inside the event Global Code, but it keeps showing the error
please support how the PDO class should be instantiated or connected
*check the connection in a single .php file and if it works but i need to use it inside phpmaker
function Row_Inserted($rsold, &$rsnew) {
…
…
$dbh = new PDO(“informix:host=$dbhost; service=$dbservice; database=$dbname; server=$dbserver; protocol=$dbprotocol”, $dbuser, $dbpass);
//; EnableScrollableCursors=1; CLIENT_LOCALE=es_es.8859-1
$this->setSuccessMessage("
Conexión Satisfactoria . . . ");
}
what the httpd log file shows:
[Wed Jun 10 17:15:05.688813 2020] [php7:error] [pid 45127] [client 100.100.100.100:65490] PHP Fatal error: Uncaught Error: Class ‘PHPMaker2020\campaniasqa\PDO’ not found in /var/www/html/campaniasqa/classes/cc_importar_tablasifx.php:1636\nStack trace:\n#0 /var/www/html/campaniasqa/classes/cc_importar_tablasifx_add.php(1674):