which thing to be used xml file or database in php?

Mohit

New member
I m developing a web application in php for which i need to store the addresses of image and their related information so i m confused that what to use xml or database.

Reason why i want to choose XML:
1.after name attribute i have to store varied no of information for each record.
2.adding a node is easy and child parent relation is well suited for the application.

Reason for choosing DB(like MySQL):
1.I want to retrieve values using where condition
2.I want to retrieve random node each time i access database.

So, Please help me in meeting all the conditions described above by choosing either of them or some other means.
Thanks in advance.
 
Back
Top