$this->error="Mysql PHP functions for using MySql driver are not available in this version of PHP";
dolibarr_syslog("DoliDB::DoliDB : Mysql PHP functions for using Mysql driver are not available in this version of PHP",LOG_ERR);
$this->error="Mysql PHP functions for using MySql driver are not available in this version of PHP. Try to use another driver.";
dolibarr_syslog("DoliDB::DoliDB : Mysql PHP functions for using Mysql driver are not available in this version of PHP. Try to use another driver.",LOG_ERR);
return$this->ok;
}
...
...
@@ -350,7 +352,7 @@ class DoliDb
if(!$this->database_name)
{
// Ordre SQL ne n�cessitant pas de connexion � une base (exemple: CREATE DATABASE)
// Ordre SQL ne necessitant pas de connexion a une base (exemple: CREATE DATABASE)
$ret=mysql_query($query,$this->db);
}
else
...
...
@@ -381,7 +383,7 @@ class DoliDb
*/
functionfetch_object($resultset=0)
{
// Si le resultset n'est pas fourni, on prend le dernier utilis� sur cette connexion
// Si le resultset n'est pas fourni, on prend le dernier utilise sur cette connexion
$this->error="Mysqli PHP functions are not available in this version of PHP. Try to use another driver.";
dolibarr_syslog("DoliDB::DoliDB : Mysql PHP functions are not available in this version of PHP. Try to use another driver.",LOG_ERR);
$this->error="Mysqli PHP functions for using Mysqli driver are not available in this version of PHP. Try to use another driver.";
dolibarr_syslog("DoliDB::DoliDB : Mysqli PHP functions for using Mysqli driver are not available in this version of PHP. Try to use another driver.",LOG_ERR);
return$this->ok;
}
...
...
@@ -116,6 +116,7 @@ class DoliDb
}
// Essai connexion serveur
// We do not try to connect to database, only to server. Connect to database is done later in constrcutor