pioneerx01 Posted July 15, 2014 Share Posted July 15, 2014 Yes, I am going to be one of those guys today. I have never done XML anything, besides past 2-3 hours or so, and I am getting frustrated. I have learned how to create simple XML files and save them. I am however having hard time figuring out how to create and XML file when trying to access an table from databse. I am looking to export from "registered_users" table all "registrations" and include "first_name", "last_name" and "age" Sample: <registered_users> <registration> <first_name>Bob</first_name> <last_name>Smith</last_name> <age>36</age> </registration> <registration> <first_name>Jack</first_name> <last_name>Miller</last_name> <age>45</age> </registration> </registered_users> It would be nice if the file would be saved as spearate "all_users.xml" Any help would be appreciated Link to comment https://forums.phpfreaks.com/topic/289895-creating-a-xml-file-from-table-with-multiple-records/ Share on other sites More sharing options...
pioneerx01 Posted July 15, 2014 Author Share Posted July 15, 2014 Ignore this. All along I have forgot to connect to the database as I was playing with the test file. I feel like an idiot. Link to comment https://forums.phpfreaks.com/topic/289895-creating-a-xml-file-from-table-with-multiple-records/#findComment-1485145 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.