From b3b596790b455f2e736746ff0978fd8f3be16d87 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Sun, 1 Sep 2019 00:33:53 +0200 Subject: [PATCH] DT --- nconnector.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nconnector.php b/nconnector.php index fc0ada4..53125df 100755 --- a/nconnector.php +++ b/nconnector.php @@ -50,6 +50,18 @@ while ($user = $doldb->result->fetch_assoc()) $oc_group_user_query = "INSERT INTO oc_group_user(uid, gid) VALUES ('" . $user["login"] . "','" . $gid . "')"; echo $account_data . EOL . $oc_account_query . EOL . $oc_users_query .EOL . $oc_group_user_query . EOL; + if (!$ncdb->query($oc_account_query)) + { + echo "Echec lors de la requete : (" . $mysqli->errno . ") " . $mysqli->error; + } + if (!$ncdb->query($oc_users_query)) + { + echo "Echec lors de la requete : (" . $mysqli->errno . ") " . $mysqli->error; + } + if (!ncdb->query($oc_group_user_query)) + { + echo "Echec lors de la requete : (" . $mysqli->errno . ") " . $mysqli->error; + } } $ncdb->result->close(); exit;