Jvais me tuer la doc
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user