exporting to xml

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux