| Current Path : /var/www/cesa.co.za/relay/include/ |
| Current File : /var/www/cesa.co.za/relay/include/generateXML.php |
<?php
$link = mysql_connect('localhost','ssidhvcc_matthew','shareb');
if ($link) {
$db=mysql_select_db('ssidhvcc_ssisite');
if (!db) {
die("Could not select db - ".mysql_error());
} // end if
} //end if
$query="SELECT * FROM saace_content WHERE id='8'";
$res=mysql_query($query);
if ($res) {
$row=mysql_fetch_assoc($res);
if($row['id']=='8') {
echo '<?xml version="1.0" encoding="utf-8" standalone="yes"?><root><content value="value"><![CDATA[<font size="16" color="#00CC00"><b>BREAKING NEWS</b></font><br><br>'.$row['content'].']]></content></root>';
}
}
?>