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

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

 	$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");		
	}


	$date = date('Y M d - H:i');
	$query = "update tblAdressbook set last_name='$txtlast',first_name='$txtfirst',ab_email='$txtemail',company='$txtcompany',work_phone='$txtwork',home_phone='$txthome',fax_number='$txtfax',mobile='$txtmobile',address1='$txtaddress1',address2='$txtaddress2',city='$txtcity',state='$txtstate',zip='$txtzip' where user_id = $user_id and item_id = $item_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