php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #29326 XML support for MySQL functions
Submitted: 2004-07-22 13:10 UTC Modified: 2004-08-02 11:04 UTC
From: fibberish at xs4all dot nl Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-07-22 13:10 UTC] 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. :)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-02 11:04 UTC] derick@php.net
PHP returns the data from the table, but does not format it at all. That's your job.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 13:01:31 2024 UTC