24 May 2017 if ($info['status'] == '1') { // check the value of the 'status' in the db //go to admin area header("Location: admin.php"); } else { //go to members area .