<? include_once("config/dbconfig.inc.php"); include_once("class/acpram.inc.php"); $tn = new myACP(); $tn->dbConnect ($dbhost, $dbuser, $dbpassword, $dbdatabase) ; $tn->delete_registration($mycard_id); $relative_url="admin_data.php?openfile=view_register.php"; header("Location: http://".$HTTP_SERVER_VARS['HTTP_HOST'] .dirname($HTTP_SERVER_VARS['PHP_SELF'])."/".$relative_url); exit; ?>