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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: fibberish at xs4all dot nl
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Thu Dec 26 10:01:29 2024 UTC