diff --git a/nconnector.php b/nconnector.php index 3dbc28d..112310e 100755 --- a/nconnector.php +++ b/nconnector.php @@ -18,7 +18,7 @@ $doldb = new db("dolibarr"); $ncdb = new db("nextcloud"); //$ncdb->database = "nextcloud"; $doldb->query("SELECT login FROM llx_adherent"); -while ($login = $result->fetch_object()) +while ($login = $doldb->result->fetch_object()) { echo $login; }