Hi,i am very new to XML,i want to use XML with php,this is the cord i used
<?php
$host = “localhost”;
$user = “lanuage”;
$pass = “testing”;
$database = “xrandomusa_4”;
$linkID = mysql_connect($host, $user, $pass) or die(“Could not connect to host.”);
mysql_select_db($database, $linkID) or die(“Could not find database.”);
$query = “SELECT * FROM pages ORDER BY pageID DESC”;
$resultID = mysql_query($query, $linkID) or die(“Data not found.”);
$xml_output = "<?xml version=“1.0”?>
";
$xml_output .= "<entries>
";
for($x = 0 ; $x < mysql_num_rows($resultID) ; $x++){
$row = mysql_fetch_assoc($resultID);
$xml_output .= " <entry>
“;
$xml_output .= " <date>” . $row[‘pageTitle’] . "</text>
";
// Escaping illegal characters
$xml_output .= " <text>" . $row['pageLink'] . "</text>
";
$xml_output .= " </entry>
";
}
$xml_output .= “</entries>”;
echo $xml_output;
?>
its working nicely by the output from db,couldnt put to a tablenn:x,please let me know hw to use db output in html tables.:doh: