Location: PHPKode > projects > Akasha > akasha/contact_delete.php
<?

if ($akashaID == $ID) {
	include ("includes/global.inc"); 		// Global Variables
	include ("includes/functions.inc"); 	// Global Functions

	$user_id = findUserByHash($ID);

	// G├╝venlik kontrol├╝
 	$query = "select user_id from tblAdressbook where item_id = $item_id";
 	$result = mysql_db_query("$dbname",$query);
 	if($result) {
 		while ($r = mysql_fetch_array($result)) {
 			$auth_user = $r["user_id"];
		}
	}
	$user_id = findUserByHash($ID);
	if ($user_id != $auth_user) {
		Header("Location: main.php?error_code=1");		
	}

  $query = "delete from tblAdressbook where item_id = $item_id and user_id = $user_id";
  $result = mysql_db_query("$dbname",$query);

	Header("Location: addressbook.php?ID=$ID");
} else {
		Header("Location: main.php?error_code=1");
}

?>
Return current item: Akasha