<? require_once("../conn.php"); require_once("access.php"); if(!empty($_GET[id])) { mysql_query("delete from yellow_types where TypeID = '$_GET[id]' ") or die(mysql_error()); } header("location:ptypes.php"); exit(); ?>