# Gallery CMS advice, Database or just XML?

**URL:** <https://forum.kirupa.com/t/gallery-cms-advice-database-or-just-xml/178588>\
**Category:** flash\
**Created:** [February 12, 2006, 7:42am UTC](https://forum.kirupa.com/t/gallery-cms-advice-database-or-just-xml/178588 "2006-02-12T07:42:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bodom78](https://avatars.discourse-cdn.com/v4/letter/b/aca169/32.png) [@Bodom78](https://forum.kirupa.com/u/Bodom78)\
**Post date:** [February 12, 2006, 7:42am UTC](https://forum.kirupa.com/t/gallery-cms-advice-database-or-just-xml/178588/1 "2006-02-12T07:42:59Z")

</div>

Hey guys, I have started to build a simple CMS for a gallery, basically the admin can add users and they in turn can login and upload images to their directories. I have got the Flash, php and database connectivity working to log in and create users but now I got to thinking why am I using a database?

I have a user table storing their passwords and settings, then I was thinking of creating a table for each user which will store the image names, dates and comments etc and have php build an xml file for the gallery from this.

I was wondering if there were any advantages over using a database as opposed to just creating and amending the xml files based on the admin actions. Also would it be a good idea to store passwords in an xml file if I was to scrap the database?

I would love to get some feedback, I’m not a programmer by trade but enjoy getting my hands dirty whenever possible.:ninja:

Cheers.
