Jvais me tuer la doc

This commit is contained in:
medhi.rodrigues
2025-03-12 15:54:23 +01:00
parent cd8af9940d
commit 20497f31d3
4 changed files with 14 additions and 34 deletions

View File

@@ -19,17 +19,17 @@ public class praticienSQL {
private ResultSet result = null;
public praticienSQL() {
connexionTest = connexionSQL.getConnect("10.121.38.173","bdmagasin", "adminBDMag", "mdpBDMag");
connexionTest = connexionSQL.getConnect("10.121.38.75","bdgsb","adminGSB","mdpGSB");
}
public String[] rechercherPraticien(String login, String mdp) {
String[] praticienCherche = new String [2];
try {
stmt = connexionTest.createStatement();
// Acc<63>s <20> la table client
result = stmt.executeQuery("SELECT * FROM client WHERE nom='"+login+
// Acc<63>s <20> la table
result = stmt.executeQuery("SELECT * FROM PRATICIENLOG WHERE id='"+login+
"' AND mdp='"+mdp + "';");
if (result.next()) { // Le client a <20>t<EFBFBD> touv<75>
if (result.next()) { // Le praticien a <20>t<EFBFBD> touv<75>
praticienCherche[0] = result.getString(1);
praticienCherche[1] = result.getString(2);