0

I have a database in MS Access with 3 columns (name,family,avg). Now, I want to read these columns and create XML for them with simplexml in PHP.

<Students>
<student>
<name></name>
<avg></avg>
</student>
<Students>

How can I do it?

Mayeenul Islam
  • 4,532
  • 5
  • 49
  • 102

1 Answers1

0

Im not a moderator soo here is an old article hope it will be of some help :) Using SimpleXML to create an XML object from scratch

Community
  • 1
  • 1
DanOrtega
  • 11
  • 2
  • i cant sync it with read from db,,,i know how can i read from db and know how can i create xml,,,but i cant sync them with together...PLEASE help me – user3213682 Jan 20 '14 at 04:10
  • Well :/ if you put it that way. what type of sync will you like ? give me all the detail please soo i can help you better – DanOrtega Jan 20 '14 at 04:12
  • i said my db have 3 cols and the name them are name,family,avg...now i want to read from db and i know i can do it with a select command and run it with odbc_exec,,,after i read from my db,,,i want to create xml for my data read col name first row from my dbread col avg first row from my dbread col name first row from my dbread col avg first row from my db – user3213682 Jan 20 '14 at 04:18
  • ok to ensure were in the same wave do you know what is a asynchronous sync and a synchrnous sync :/ ? – DanOrtega Jan 20 '14 at 04:20