I am not that great with XML but I'm pretty good with PHP. I need to use an XML file as a "database" of sorts. It contains various user information. Including login information. The XML is set up as such:
<employee ssnum="">
<first_name></first_name>
<last_name></last_name>
<contact_info>
<office_phone></office_phone>
<email></email>
<cell_phone></cell_phone>
</contact_info>
<access_info level="user">
<username></username>
<password></password>
</access_info>
<department></department>
<date_started></date_started>
<position></position>
</employee>
I need some way to check the username and password to see if they match, and log in the respective user. I am unsure of how to check the username/password pairs, and how to return the proper user for login. There was an alternate way to do this I was shown via DOMdocument and then mysql queries to use the xml file as a database of sorts, but I'm not sure that is the easiest way, or how that would work.
This is not for any serious kind of work, it is a learning project.
Any helps would be appreciated, thanks.