Hi hope some one can help me out with this. Basically i need to transfer data from a php array to xml. The code in php works out the time of day and weekly program schedule . example at
www.vikingradio.net can some one show me how i transfer this info to xml . Much appreciated with any help
ron
note hope i got this code right this time to display correctly on forum
Code:
<?php
include("data.php");
echo "<div class='Shows'>";
echo "<div class='day'>" . date("l",strtotime($showday)) . " " . date("G:i:s",$UKTime) . "</div>";
for ($i=$Si;$i<$Ei;$i++) {
$tShow = (object) $thisShows[$i];
echo "<div class='Sitem'>\n";
echo "<div class='indicator'>" . ($i==$showK?"ON AIR NOW:":" ") . "</div>";echo '<img src="'.$playing.'">';
echo "<div class='showtime'>" . str_pad($tShow->start,2,"0",STR_PAD_LEFT) . ".00-" . str_pad($tShow->end,2,"0",STR_PAD_LEFT) . ".00</div>";
echo "<div class='descr'>" . $tShow->descr;
if ($tShow->descr_long) echo "<div class='descr_long'>" . $tShow->descr_long . "</div>";
echo "</div>";
echo "<div class='sep'></div>";
echo "</div>\n";
}
echo "<p class='pclear'></p>\n";
echo "</div>";
?>