Arizona Air Quality Information
edition as $topic) {
$masterid[$a] = $topic -> id;
$a++;
};
$b = $a;
//Get information from address bar
if (isset($_GET['id'])) {
$id = $_GET['id'];
}else{
$id=$b;
}
;
//Pull data from xml files
$filename = "https://static.azdeq.gov/aqd/forecast/data/aqshorts/id_".$id.".xml";
$xml = simplexml_load_file($filename);
$date = $xml -> date;
$time = $xml -> time;
$title = $xml -> title;
$body = $xml -> body;
$author = $xml -> author;
$image = $xml -> image;
$url = $image;
$path = parse_url($url, PHP_URL_PATH);
$segments = explode('\\', rtrim($path, '/'));
?>
title; echo "
Published on: at by
title; echo "