if ($_key_type == $_user_admin_key) { $_key = $_POST['_key_scudsbook']; $_user_name = $_POST['_user_name']; $databaseConnection->queryAmdin($_key, $_user_name); } else { if ($_key_type == $_type_location) { $_key = $_POST['_key_scudsbook']; $_user_name = $_POST['_user_name']; $_lat = $_POST['_location_lat']; $_lan = $_POST['_location_lan']; $databaseConnection->userLocationUpdate($_key, $_user_name, $_lat, $_lan); } else { if ($_key_type == $_type_location_query) { $_key = $_POST['_key_scudsbook']; $_user_name = $_POST['_user_name']; $databaseConnection->queryAddress($_key, $_user_name); } else { if ($_key_type == $_type_order_info_update) { $_key = $_POST['_key_scudsbook']; $_user_name = $_POST['_user_name']; $order_id = $_POST['key_order_info_id']; $order_customer_name = $_POST['key_order_info_customer_name']; $order_customer_phone = $_POST['key_order_info_customer_phone']; $order_distance = $_POST['key_order_info_distance']; $order_address = $_POST['key_order_info_address']; $order_city = $_POST['key_order_info_city']; $order_state = $_POST['key_order_info_state']; $order_zip = $_POST['key_order_info_zip']; $order_product_cost = $_POST['key_order_info_product_cost']; $order_deliver_fee = $_POST['key_order_info_deliver_fee']; $order_tip = $_POST['key_order_info_tip'];