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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Fri Dec 27 00:01:30 2024 UTC