1
0
This commit is contained in:
Daniel Tartavel 2019-08-31 12:41:48 +02:00
parent 6c8c96934c
commit 90a95df0f5
2 changed files with 7 additions and 6 deletions

View File

@ -10,10 +10,11 @@ class db
public $connect; public $connect;
public $result; public $result;
/*function __construct() function __construct($database)
{ {
$this.open($database);
} }
*/
function open() function open()
{ {

View File

@ -7,10 +7,10 @@ require("config.inc.php");
require("log.php"); require("log.php");
require("db.class.php"); require("db.class.php");
$doldb = new db(); $doldb = new db("dolibarr");
$doldb->database = "dolibarr"; //$doldb->database = ;
$ncdb = new db(); $ncdb = new db("nextcloud");
$ncdb->database = "nextcloud"; //$ncdb->database = "nextcloud";
$doldb->query("SELECT login FROM llx_adherents"); $doldb->query("SELECT login FROM llx_adherents");
function esp( $s ) function esp( $s )