Suggested articles for you:

19 thoughts on “Complete Login and Registration Application using PHP and MySQL

  1. Darryl Santmayor

    Hey im getting an error “Warning: mysqli_connect(): (HY000/1045): Access denied for user ‘root’@’localhost’ (using password: NO) in C:\xampp\htdocs\log\includes\ on line 8
    Connection failed: Access denied for user ‘root’@’localhost’ (using password: NO)”

    I created loginsystem database but can u give the sql code for table creation.

    1. Ravi Bandakkanavar Post author

      Hi Darryl,

      Where are you executing this one?
      Please make the following change in and try.

      $dBPassword = “”; //Database password

  2. DOHNA A S

    i want to download the complete project source code link please

  3. Robert

    Hi Ravi,

    thanks for a nice tutorial! Regarding the registration process, can you add e-mail validation, i.e. the visitor needs to validate his/her e-mail (using a link with a token) before he/she can gain access?

    1. Ravi Bandakkanavar Post author

      Thanks Robert. You are proposing a good extension to the registration process. It needs a tweak in the table to include an additional column to track the email activations.
      I will either add it in the same process or try to write a separate post for the same.

  4. Rocky Edwards

    this is a very good tutorial but how could I make it where whoever logins has a personal page like background and other personal links to other pages based on their login credentials

  5. t3ch_guru

    this is great but how can you add a personal page for the user login like if they have a custom background picture and links or icons on their personal page instead of everyone accessing the same index.php that shows nothing

  6. charles

    Thanks for the tutorial. I’m new to php; please kindly help me on how to link the files. Do I create several page templates for the “.inc.php” files?.

      1. Charles

        Hello Ravi,
        Thanks for your prompt response to my last mail. But you haven’t uploaded the project zip as promised. There seems no download link to this tutorial. Please help…


Did it help? Comment here..