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;