PHP Login (Any Database)

Documentation

Installation steps

  • After you have downloaded the files the first step is to unzip and put them in the file where you want this script to be.
  • To install the script you need to run install.php. However at first if you try and run it, it might give you an error screen like this.

Error

  • So you need to provide some settings information. Open the data folder (inside phploginanaydata) .You will see a php file default.settings.php. Make a copy of this file and name it as settings.php.
  • Now run install.php. You will get a screen like the one shown below.

Installation

  • Here you need to provide your database information. Enter the name of your database, username and password. You might leave the advanced configuration settings as it is. It will run even if you do not enter anything in port or table prefix. 
  • Next press Save and Install.
  • If you have entered all the details correctly you will get a screen like this implying that the script has been installed successfully.

Success

  • In case you do not get this screen there might be some error in the details that you have entered. Verify it once again.

Integration of the script into your site

  • For this all you need to do after installation is to add this one line of code

    <?php require "checklogin.php"; ?>

    at the beginning of your code. It will direct you to the login page.

Login

  • New users need to Register themselves before they login. Clicking on SIGN UP will redirect you to the register.php page where you can register yourself. The information will automatically be inserted into the user_info table in your database. The registration page looks like this.

Registration