include "includes/db.php";
session_start();
// log client in
if($login)
{
if($result = mysql_query("SELECT * FROM clients WHERE username='$username' AND password='$password'"))
{
$row = mysql_fetch_array($result);
if($row[id])
{
$_SESSION['-userId'] = $row[id];
header("Location:clientarea_index.html");
}
else
{
$message = '
Invalid Login! Please try again. If you continue to have trouble, please contact us.
';
}
}
}
?>
![]() ![]() ![]() ![]() ![]() |
||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
|
|||
|
||||