0){ while($row = mssql_fetch_assoc($result)){ $arrayOfCustomerInformation[] = $row; } return $arrayOfCustomerInformation; } else { return 0; } } ?>
| Vendor | ". "Vendor Phone | ". "Reference Title | ". "Serial Number | ". "Warranty Exp Date | ". "Notes | ". "Product ID | ". "Product UDF | ". "". $myAssetArray[$k]["account_name"]." | ". "". $myAssetArray[$k]["phone_number"] ." | ". "". $myAssetArray[$k]["reference_title"]." | ". "". $myAssetArray[$k]["serial_number"] ." | ". "". $myAssetArray[$k]["warranty_expiration_date"]. " | ". "". $myAssetArray[$k]["notes"] ." | ". "". $myAssetArray[$k]["installed_product_id"] ." | "; //NOTE: the values listed in the 'CAST' parends below must match the names //you used for the UDF in Autotask. Replace spaces with '_' //Also- list types must append '_visible_value' to the end of the variable. $query = "select CAST(circuit_id as TEXT) as circuit_id, CAST(circuit_type_visible_value as TEXT) as circuit_type, CAST(download_speed as TEXT) as download_speed, CAST(upload_speed as TEXT) as upload_speed, CAST(public_ip_address as TEXT) as public_ip_address, CAST(public_subnet_mask as TEXT) as public_subnet_mask, CAST(public_default_gateway as TEXT) as public_default_gateway, CAST(useable_public_range as TEXT) as useable_public_range from wh_installed_product_udf where installed_product_id = '". $myAssetArray[$k]["installed_product_id"]."' "; $myUDFArray = queryToArray($query); echo "\n"; print_r($myUDFArray); echo "\n | ";
echo "";
}
echo "
\n"; // print_r($myAssetArray); // echo "\n"; } ?>