<? session_start(); include_once("config/dbconfig.inc.php"); include_once("class/acpram.inc.php"); $tn = new myACP(); $tn->dbConnect ($dbhost, $dbuser, $dbpassword, $dbdatabase) ; $result = $tn->chk_mem_data($view_code) ; if($result["count_data"] == 1){ header("Location: regis-formnew.php"); exit; } else{ header("Location: view_profile.php?view_code=$view_code"); exit; } ?>