<?
if ($akashaID == $ID) {
include ("includes/global.inc"); // Global Variables
include ("includes/functions.inc"); // Global Functions
$user_id = findUserByHash($ID);
$date = date('Y M d - H:i');
$query = "INSERT INTO tblAdressbook (item_id, user_id, last_name, first_name, company, ab_email, home_phone, work_phone, fax_number, mobile, address1, address2, city, state, zip) VALUES ('','$user_id','$txtlast','$txtfirst','$txtcompany','$txtemail','$txthome','$txtwork','$txtfax','$txtmobile','$txtaddress1','$txtaddress2','$txtcity','$txtstate','$txtzip')";
$result = mysql_db_query("$dbname",$query);
Header("Location: addressbook.php?ID=$ID");
} else {
Header("Location: main.php?error_code=1");
}
?>