|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-08-02 11:04 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 09:00:01 2025 UTC |
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. :)