Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class verfimdp{
- public void main(String[] args){
- String pilote = "com.mysql.jdbc.Driver";
- try{
- Class.forName(pilote);
- Connection connexion = DriverManager.getConnection("jdbc:mysql://sql.olympe-network.com/zugoent/66509_mdphemu ","66509_mdphemu","wbam3994");
- Statement instruction = connexion.createStatement();
- ResultSet resultat = instruction.executeQuery("SELECT * FROM mdp_hemu");
- while(resultat.next()){
- mdp = resultat;
- Scanner sc = new Scanner(System.in);
- System.out.println("Rentrez votre mot de passe:");
- String mdp_entre = sc.nextLine();
- if (mdp_entre == mdp)
- {
- }
- }
- catch (Exception e){
- System.out.println("echec pilote : "+e);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement