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.
this function is for execution the sql query.
$query = the mysql query.
this function is for the fetch data from the database table.
$result = the return value after execute mysql query
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 email@example.com