<?php
// Establishing Connection with Server by passing server_name, user_id and password as a parameter
$connection = @mysql_connect("localhost", "allianc1_naija", "gv;MY66bJv1U6:");
// Selecting Database
$db = @mysql_select_db("allianc1_naija", $connection);
session_start();// Starting Session
// Storing Session
$user_check=$_SESSION['login_user'];
// SQL Query To Fetch Complete Information Of User
$ses_sql=mysql_query("select * from tbl_users where acref='$user_check'", $connection);
$row = mysql_fetch_assoc($ses_sql);
$login_session =$row['acref'];
if(!isset($login_session)){
mysql_close($connection); // Closing Connection
header('Location: Account.php'); // Redirecting To Home Page
}
?>