#29326 [Opn->WFx]: XML support for MySQL functions
| From: | derick@php.net | Date: | Mon, 02 Aug 2004 09:04:05 +0000 |
| Subject: | #29326 [Opn->WFx]: XML support for MySQL functions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-63894@lists.php.net to get a copy of this message | ||
ID: 29326
Updated by: derick@php.net
Reported By: fibberish at xs4all dot nl
-Status: Open
+Status: Wont fix
Bug Type: Feature/Change Request
PHP Version: Irrelevant
New Comment:
PHP returns the data from the table, but does not format it at all.
That's your job.
Previous Comments:
------------------------------------------------------------------------
[2004-07-22 13:10:41] fibberish at xs4all dot nl
Description:
------------
The idea would be that when SELECT * FROM table; is executed on this
table:
----------------------------
| id | name |
----------------------------
| 1 | User 1 |
| 2 | User 2 |
| 3 | User 3 |
| 4 | User 4 |
----------------------------
Combined with a piece of code like this:
while( $row = mysql_fetch_array($result, RETURN_XML, "UserRecord") ) {
echo $row["UserRecord"];
}
Would output this:
<UserRecord>
<id>1</id>
<name>User 1</name>
</UserRecord>
<UserRecord>
<id>...etcetera
I do realize this may not be much information to go on, but I am sure
the concept is very clear. :)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29326&edit=1