Hello! I know how to parse XML with PHP now, except that I do not know how to read the attributes. Here is an example of the code I am using:
Now, what I want the script to do is it read=0, do something or if it is 1 do something else. It is a mail system, so when the link to the message is clicked, I want the read attribute to equal 1. Thank you in advance!
Matt
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<mail read="0">
<from>Foo_user</from>
<subject>Hello!</subject>
<message>Good morning! How are you?</message>
</mail>
Now, what I want the script to do is it read=0, do something or if it is 1 do something else. It is a mail system, so when the link to the message is clicked, I want the read attribute to equal 1. Thank you in advance!
Matt