31 thoughts on “Android Login And Registration Using PHP And MySQL”

  1. Hola Abdelhamid Ahmed,
    Excelente el vídeo y muy buena la presentación. Solo pedirle un favor, si puedes compartir el código fuente de: Android Login and Registration system using MySQl Database, estaré muy agradecido. Sin mas reciba saludos cordiales.

  2. Thanks for All, But it didn’t Work, I
    get message while i want to add to my BD :
    ( ! ) Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, bool given in C:\wamp64\www\loginregister\register.php on line 17
    Call Stack
    # Time Memory Function Location
    1 0.0001 405624 {main}( ) …\register.php:0
    2 0.0151 454032 mysqli_num_rows ( ) …\register.php:17

    ( ! ) Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, bool given in C:\wamp64\www\loginregister\register.php on line 19
    Call Stack
    # Time Memory Function Location
    1 0.0001 405624 {main}( ) …\register.php:0
    2 0.0672 454648 mysqli_num_rows ( ) …\register.php:19
    Failed to register you account

  3. thank’s Abdelhamid Ahmed, it’s very beautiful work.
    When I tape the information in register Form (Create new Account) and Clock to register , I get this message and Apllication is stopped (LoginRegistration à cessée de fonctionnée).

        1. client error is due to code error in php script or you the script in the wrong path. please check first the code you can copy it from the article. also you can test the script by submitting true POST values and call the script url in address bar if there is errors copy it and comment it.

          1. I run register.php code on browser it working fine and saved details on db but i connect to app its not working. where is that error occured. this is path String url = “http://192.168.61.80/New/register1.php”;
            PC ip add -192.168.61.80
            htdoc folder -New
            php file – register.php
            @Abdelhamid Ahmed

  4. 2020-07-28 09:27:17.857 22355-22355/com.example.loginregistration E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.loginregistration, PID: 22355
    java.lang.NullPointerException: Attempt to invoke virtual method ‘com.android.volley.Request com.android.volley.RequestQueue.add(com.android.volley.Request)’ on a null object reference
    at com.example.loginregistration.MySingleton.addToRequestQueue(MySingleton.java:44)
    at com.example.loginregistration.MainActivity.login(MainActivity.java:123)
    at com.example.loginregistration.MainActivity.access$000(MainActivity.java:27)
    at com.example.loginregistration.MainActivity$1.onClick(MainActivity.java:58)
    at android.view.View.performClick(View.java:5690)
    at android.view.View$PerformClick.run(View.java:22693)
    at android.os.Handler.handleCallback(Handler.java:836)
    at android.os.Handler.dispatchMessage(Handler.java:103)
    at android.os.Looper.loop(Looper.java:203)
    at android.app.ActivityThread.main(ActivityThread.java:6269)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)
    2020-07-28 09:27:22.841 22355-22366/com.example.loginregistration I/art: Enter while loop.
    2020-07-28 09:27:23.731 22355-22366/com.example.loginregistration I/art: Enter while loop.

  5. login php not working
    Notice: Undefined index: email in C:\xampp\htdocs\VS\login.php on line 3

    Notice: Undefined index: psw in C:\xampp\htdocs\VS\login.php on line 4
    This Email is not valid} } else{ echo “Connection Error”; } ?> else{ echo “Connection Error”; } ?>

  6. Hi , i have faced error while doing registration, pressing register button it take more time and showing progressive dialog and after 3 to 4 mins its shown volley timeout error please help us to solve this issue

  7. hii Android Hands,

    i am following all the steps properly.

    but my register was getting failed

    why?? please help me please!!!

    reply me!!

  8. Pingback: Android Studio Login And Register With Database – Login Saves

Leave a Comment

Your email address will not be published. Required fields are marked *