PHP Tutorial : Membership script – Users Login

Welcome back to the simple php membership script tutorial.
Last time we saw how to create the php user registration function. We will continue today with the php login function and will also see how to check if a user is logged in or not.

<?php
function loginUser($user, $pass) {

if(empty($user) || empty($pass)) {
exit();
}else{
$user = addentities($user);
$pass = addentities($pass);
$sql =…………….

Read PHP Tutorial : Membership script – Users Login »