PHP Classes

Classes of abubakkar siddiq

Recommend this page to a friend!
  All class groups  >  All authors  >  Classes of abubakkar siddiq (1)  >  Mission progress status  >  Reputation  
Picture of abubakkar siddiq
Name: abubakkar siddiq <contact>
Classes: 1
Country: India India
Age: ???
All time rank: 84750 in India India
Week rank: 215 Up13 in India India Up
All time users: 3777
Week users: 0
 
  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  
  Files folder image The Login Class  
Autenticate users with records in a MySQL database
This is a simple class can be used to authenticate users with records stored in a MySQL database table.

It looks up in a given MySQL table for the password of a given user, and checks if the password matches a given value entered by the user being authenticated.

If there is a record for the specified user and the password is correct, the class sets a session variable with the user name and returns the code 1. If the password is incorrect, it returns the code 2. If there is no user with the specified user name, it returns 0.

The class may also check encoded passwords stored after using the MD5 hash function.
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: 62% 56% 56% - - - 42% 3638
Month: Not yet rated by the users


  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z