RE: [PHP-DB] exporting to xml

From: Date: Wed, 30 Oct 2002 01:55:35 +0000
Subject: RE: [PHP-DB] exporting to xml
Groups: php.db 
Request: Send a blank email to php-db+get-22807@lists.php.net to get a copy of this message
you don't see them because they are interpreted as HTML tags, they are unknown, so they are ignored. options; 1. View -> Source 2. Encode all "<" as &lt; (HTML version) and it will display it all as text, then you can copy-paste it to somewhere else 3. Wrap it all in a <pre> tag, then follow 2. 4. Output the proper XML declaration at the top of the file so that IE treats it like XML, and does it's fancy dynamic-tree style presentation. <?xml version="1.0"?> ^--- a very basic XML declaration HTH Beau // -----Original Message----- // From: Martin Hudec [mailto:corwin@corwin.sk] // Sent: Wednesday, 30 October 2002 12:00 AM // To: php-db@lists.php.net // Subject: [PHP-DB] exporting to xml // // // 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 //

« previous php.db (#22807) next »