How to Create Multi User Login Form in java using MySQL Database ? [With Source Code]

Поділитися
Вставка
  • Опубліковано 22 лис 2024

КОМЕНТАРІ • 98

  • @AndrewProjectos
    @AndrewProjectos 4 роки тому +6

    I wish one day to find a video where the person goes straight to the point and not talking too much

  • @tristisludos
    @tristisludos 3 роки тому +3

    Yo thanks for the video mate, keep up the good work PogChamp

  • @chaidarsaad8421
    @chaidarsaad8421 3 роки тому +1

    thankyou sir you have done complete my project

  • @sanoshjacob115
    @sanoshjacob115 4 роки тому +1

    thank you very much broo.it help me with my mini project ;;

  • @Alukardo11
    @Alukardo11 5 років тому +2

    Thank you , this help me with my project. i work perfect

  • @RunCodes
    @RunCodes  3 роки тому +1

    do you like our work?
    does this tutorial help you?
    if so, you can support us at www.patreon.com/RunCodes

  • @jjangjjangman9698
    @jjangjjangman9698 2 роки тому

    Thank you so muchhhh! Such a big help. Love yahh ~~

  • @bharatthapa9104
    @bharatthapa9104 4 роки тому +6

    hi there , I want the same feature without selecting user type in log in frame . user jst need to enter their id and password and our program should auto recognize the user type .. How could it be possible ? and thanks for the video..

  • @hamidshiaikh3544
    @hamidshiaikh3544 10 місяців тому

    Where is the source code file in your blog I m not getting it I have find

  • @manojchandthaquree7821
    @manojchandthaquree7821 Рік тому

    How to integrate it with login and signup page sir

  • @DRealSmiley
    @DRealSmiley 11 місяців тому

    is it required to have combo box to recognize the admin or user?

    • @RunCodes
      @RunCodes  10 місяців тому +1

      that’s why we use it!

  • @samuelstephen6769
    @samuelstephen6769 3 роки тому

    ?Have no idea what you are saying, sorry sir but no offence, I cannot follow your accent. But I know you provided a great tutorial for those who benefited! All the best to you.

  • @enderj295
    @enderj295 Рік тому

    Thanks Kuys))))

  • @nalakaweerakon5713
    @nalakaweerakon5713 4 роки тому

    Fantastic. Good job.thanx!

  • @irenepaclesobredo8892
    @irenepaclesobredo8892 6 місяців тому

    pst = con.prepareStatement(query); is error why?

    • @RunCodes
      @RunCodes  6 місяців тому

      Whats the error?

  • @thisaraharshana2168
    @thisaraharshana2168 3 роки тому

    Thank you very much sir.

  • @Ghadah1
    @Ghadah1 2 роки тому

    Thank you !

  • @nptidurg
    @nptidurg 4 роки тому

    Hello Sir, If I want Multi-User Login form in Android Studio using MySQL, Then what to be done?

  • @ANSH-xm7ht
    @ANSH-xm7ht 6 років тому +1

    if 2 different users log in they both are directed ti the same page wit same information. my question is how to store the value which was input by the user in the previous form and the new form remembers the value...

    • @RunCodes
      @RunCodes  6 років тому

      stackoverflow.com/questions/9834915/how-to-pass-a-variable-value-from-one-jframe-to-another-jframe-in-netbeans this may help you!

    • @makkimalik2594
      @makkimalik2594 6 років тому

      i have a Question and want to ask from u

    • @ANSH-xm7ht
      @ANSH-xm7ht 6 років тому

      @@RunCodes thankyou

  • @safaeahmaddouch3454
    @safaeahmaddouch3454 5 років тому +1

    what if we are working with JavaFX ?
    I couldn't matche this code with mine !
    could you help me?

  • @ADevGaming
    @ADevGaming 5 років тому

    I run and i klick login and write out { parameter index out of range ( 1 > number of parameters, which is 0 )

    • @RunCodes
      @RunCodes  5 років тому

      add value of combobox and see the code carefully.

  • @KARAOKEQUALITY
    @KARAOKEQUALITY 5 років тому +1

    thank you sir

  • @vaishnavikhedakar4619
    @vaishnavikhedakar4619 4 роки тому

    Plz resolve my error sir , you have an error in your SQL syntax check the manual that corresponds to your MySQL server version for right syntax to use near "ecops" WHERE username='admin' and usertype='admin' at line १

    • @RunCodes
      @RunCodes  4 роки тому

      Check your sql query!

  • @OfficialMinor
    @OfficialMinor 5 років тому

    Thank you very much

  • @ashwaniyadav3661
    @ashwaniyadav3661 6 років тому

    Thanks for this video

  • @charleduardnarvaez4259
    @charleduardnarvaez4259 3 роки тому

    you have an error in your sql syntax check the manual that corresponds to your mariadb server version

  • @stressless_colormore
    @stressless_colormore 3 роки тому

    Thank You

  • @DimuthuJayanath
    @DimuthuJayanath 3 роки тому

    Thanks Bro

  • @anginanyouth6840
    @anginanyouth6840 3 роки тому

    Good Day, is that possible to create multi login user without Combo box? the code can detect if the usertype is admin and it direct to admin jframe and when it is user, it will direct to user? without combobox?

    • @RunCodes
      @RunCodes  3 роки тому

      Possible, but its complicated!

    • @anginanyouth6840
      @anginanyouth6840 3 роки тому

      @@RunCodes Thank you for a Response and I already made it now.

  • @MrFred-vy9pi
    @MrFred-vy9pi 2 роки тому

    I Have a problem at 8:44 . The prepare Statement has an error, what would I do?

    • @RunCodes
      @RunCodes  2 роки тому

      Whats the error?

    • @tom3704
      @tom3704 2 роки тому

      @@RunCodes i have an error on this line too, it shows:
      cannot find symbol
      symbol method: prepareStatement(String)
      location variable con of type Connection
      how can this error be resolved?

    • @RunCodes
      @RunCodes  2 роки тому

      PrepareStatement

  • @SungSiao
    @SungSiao 5 років тому +2

    No suitable driver found for jdbc :(

    • @RunCodes
      @RunCodes  5 років тому +1

      Add myqsl connector for java in your project libraries folder!

    • @aishwaryabala3775
      @aishwaryabala3775 4 роки тому

      @@RunCodes hi.. Even after adding.. It's like this

  • @houdabelabdoun4063
    @houdabelabdoun4063 2 роки тому

    And if i use two database?

  • @shanphofficial39
    @shanphofficial39 5 років тому +1

    why getText Cannot find symbol in my program ?

  • @astiginko
    @astiginko 4 роки тому

    I have an error with DriverManager it says cannot find symbol please help. thanks

    • @RunCodes
      @RunCodes  4 роки тому

      write it correctly and import classes,
      import java.sql.Connection;
      import java.sql.DriverManager;
      import java.sql.PreparedStatement;
      import java.sql.ResultSet;

  • @chandrasekar-jd1se
    @chandrasekar-jd1se 5 років тому

    (String query=select *....username=? And password=? )Why ? Is used in code can you answer pls it's urgent

    • @RunCodes
      @RunCodes  5 років тому

      ? Is replace by pst.setString(1, yoirvariablename) first ? replace by 1 and so on!

  • @vaishnavikhedakar4619
    @vaishnavikhedakar4619 4 роки тому

    How to resolve this error : No suitable driver found for jdbc:mysql://localhost/ecops

    • @RunCodes
      @RunCodes  4 роки тому

      add driver library on your library folder! I showed you, watch the full video!

  • @UncleofGeorge
    @UncleofGeorge 5 років тому

    Dear brother can you help me on using the Java Sphinx library file to use it in my program?

  • @sanoshjacob115
    @sanoshjacob115 4 роки тому

    How to check user name and password if it had n users and passwords in the database

    • @RunCodes
      @RunCodes  4 роки тому

      use select query
      String username=txtUser.getText();
      String password=txtPass.getText();
      final String queryCheck = "SELECT count(*) from table-name WHERE username= ? and password=?";
      final PreparedStatement ps = conn.prepareStatement(queryCheck);
      ps.setString(1, username);
      ps.setString(2, password);
      final ResultSet resultSet = ps.executeQuery();
      if(!(resultSet.next())) {
      //do your things
      }

  • @resaseptiana755
    @resaseptiana755 4 роки тому

    Error "AWT-EventQueue-0" java.lang.NullPointerException,,how to fix..??

    • @RunCodes
      @RunCodes  4 роки тому

      Check your button code!

    • @resaseptiana755
      @resaseptiana755 4 роки тому

      Ok it's worked,, But I want to add user type on combo button,, so what should I do for this case..??

  • @sumaiyar4047
    @sumaiyar4047 6 років тому

    can you please tell the server you used?

  • @lodjava
    @lodjava 5 років тому

    It shows me you must configure either the server or JDBC driver

    • @RunCodes
      @RunCodes  5 років тому

      Contact us on facebook!

    • @lodjava
      @lodjava 5 років тому

      @@RunCodes how

  • @ADevGaming
    @ADevGaming 5 років тому

    whether DriverManager is also added to Java import ??

    • @RunCodes
      @RunCodes  5 років тому

      watch video!

    • @ADevGaming
      @ADevGaming 5 років тому

      I run and i klick login and write out { parameter index out of range ( 1 > number of parameters, which is 0 )

  • @adelmouhib7472
    @adelmouhib7472 5 років тому

    thank you su much

  • @sempakkadal1654
    @sempakkadal1654 4 роки тому

    Use XAMPP? is work ?

  • @SanzayThapa
    @SanzayThapa 6 років тому

    padera vanex kya

  • @sahanpra6305
    @sahanpra6305 3 роки тому

    not working

  • @uziee5911
    @uziee5911 5 років тому

    "else' without if error

    • @RunCodes
      @RunCodes  5 років тому

      Check your code!

  • @Attee_Q
    @Attee_Q 5 років тому

    No HD?

  • @borgar4357
    @borgar4357 2 роки тому

    this tutorial could be better only if you presented the necessary Library packages FIRST instead of explaining everything FIRST without saying the necessary packages and then only showing the necessary packages when the video is ending. you don't know how much headache and frustration you have done to me because I can't follow the video accordingly because I don't understand WHY can you import the SQL.* and you didn't show that you already added it to your project to begin with.
    but anyway,
    the tutorial was great and syntaxes are easy to understand, but wasn't stated the necessary items in the beginning of the video.

  • @vaishnavikhedakar4619
    @vaishnavikhedakar4619 4 роки тому

    Error show could not find or load main class ecops.NewJFrame...
    How to resolve this error

  • @tharinduwijayarathna
    @tharinduwijayarathna 2 роки тому

    Thank you very much

  • @fatima1795
    @fatima1795 10 місяців тому

    Thank u sir

  • @RecoverIman01
    @RecoverIman01 3 роки тому

    Thanks Bro