1 2 3 4 5 6 7 8 9 10 11 12 13
| public static void ouvrir(Connection con,String login,String MP) throws SQLException
{
Statement Selection=con.createStatement();
String reqSelection="Select type_Employe from Employe where login='"+login+"' AND mot_de_passe='"+MP+"';";
ResultSet resultat=null;
resultat=Selection.executeQuery(reqSelection);
String log,Mdp,Type;
while(resultat.next())
{
//Id=resultat.getInt("Id_Employe");
log=resultat.getString("login");
MdP=resultat.getString("mot_de_passe");
Type=resultat.getString("type_Employe"); |
Partager