PHP Classes

Simple login and database module: Authenticate users with records in a MySQL table

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 43%Total: 1,625 All time: 2,426 This week: 455Up
Version License PHP version Categories
login 1.0GNU General Publi...5PHP 5, Databases, User Management
Description 

Author

This class can be used to authenticate users with records in a MySQL table.

It can check a given user with a password. If the user exists and the password is correct, it will start a session and redirect the browser to a secure are page.

Picture of Saeed Ahmed
  Performance   Level  
Name: Saeed Ahmed <contact>
Classes: 1 package by
Country: Bangladesh Bangladesh
Age: 36
All time rank: 175925 in Bangladesh Bangladesh
Week rank: 206 Up3 in Bangladesh Bangladesh Up

Details

This class is written to create login module. also this class is written to connect database, sql query execution and fetch data from database table. -> query_execute($query) this function is for execution the sql query. $query = the mysql query. ->fetch_data($result) this function is for the fetch data from the database table. $result = the return value after execute mysql query ->login_user($username, $password) login_user is for login function. it validate the user from database. $username = user name and $password = password. this class is under GPL license. you are very welcome for modifications of this class. please feel free to contact me with the bugs or any modifications. my contact email saeed.sas@gmail.com

  Files folder image Files (5)  
File Role Description
Plain text file login.class.php Class class file
Accessible without login Plain text file readme.txt Doc. documentation for the class
Accessible without login Plain text file sample.php Example sample file
Accessible without login Plain text file sample_sql.sql Data sample sql files for testing
Accessible without login Plain text file securearea.php Example secure page after login

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,625
This week:0
All time:2,426
This week:455Up
User Ratings User Comments (2)
 All time
Utility:50%StarStarStar
Consistency:66%StarStarStarStar
Documentation:50%StarStarStar
Examples:66%StarStarStarStar
Tests:-
Videos:-
Overall:43%StarStarStar
Rank:3572
 
Excelent!
10 years ago (Gilvan Correa Rodrigues)
77%StarStarStarStar
This class can be dangerous.
14 years ago (Artur Graniszewski)
22%StarStar