exporting to xml
| From: | Martin Hudec | Date: | Tue, 29 Oct 2002 15:59:48 +0000 |
| Subject: | exporting to xml | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-22785@lists.php.net to get a copy of this message | ||
Hello,
i am creating script which will make select and desc to table and
then based on results it will make xml file...all is okay, but on my
IE it takes it as xml file (it is okay) BUT on my screen I dont see
any of <something> tags...how can i override that?
script is here:
header("Content-type: text/xml");
....db related stuff...
$fcount = mysql_num_fields($result);
print "<result>"; //will be table name
while($row = mysql_fetch_array($result)){
print "<row>";
for($i=0; $i<$fcount; $i++){
$tag = mysql_field_name($result,$i);
print "<$tag>". $row[$i]. "</$tag>";
}
print "</row>";
}
--
Best regards,
Martin mailto:corwin@corwin.sk