mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-08 18:48:22 +01:00
Ajout de la fonction list_table
This commit is contained in:
@@ -57,8 +57,7 @@ class DoliDb {
|
||||
}
|
||||
else
|
||||
{
|
||||
print "Db->Db() rat<61><br>\n";
|
||||
$this->connected = 1;
|
||||
$this->connected = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -88,7 +87,7 @@ class DoliDb {
|
||||
*/
|
||||
Function connect($host, $login, $passwd)
|
||||
{
|
||||
$this->db = mysql_connect($host, $login, $passwd);
|
||||
$this->db = @mysql_connect($host, $login, $passwd);
|
||||
return $this->db;
|
||||
}
|
||||
/*
|
||||
@@ -171,6 +170,16 @@ class DoliDb {
|
||||
return $this->results;
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
Function list_tables($database)
|
||||
{
|
||||
$this->results = mysql_list_tables($database, $this->db);
|
||||
return $this->results;
|
||||
}
|
||||
|
||||
|
||||
Function result($nb, $fieldname)
|
||||
{
|
||||
return mysql_result($this->results, $nb, $fieldname);
|
||||
|
||||
Reference in New Issue
Block a user