Thanks for the help that worked....Now it is on to the next step, hopefully you guys can help with that.
I was using an XML Parser for one user and it worked just fine, but now with the added Usernames to the XML I am unable to parse the XML
For example.....here is one users XML Data:
<Info>
<Username>Username1</Username>
<Data>Here is some data</Data>
<Info/>
Here is an example passing two Usernames:
<ArrayOfInfo>
<Info>
<Username>Username1</Username>
<Data>Here is some data</Data>
<Info/>
<Info>
<Username>Username2</Username>
<Data>Data for username2</Data>
<Info/>
</ArrayOfInfo>
Here is my full PHP Code now(minus DB connection):
<?
include_once "xml.php";
$xml = new ParseXML;
$query = "SELECT * FROM se_users ORDER BY Rand() LIMIT 10";
$result = mysql_query($query) or die(mysql_error());
$usernames = array();
while($row = mysql_fetch_array($result)){
$usernames[] = "Username=" .str_replace(" ","%20",($row['user_username']));
$location = "http://localhost/xml.php?" . implode('&', $usernames);
$parsed = $xml->LoadXML($usernames,$location);
// XML INFO TAKEN
$info = $parsed['ArrayOfInfo']['Info']['Username'];
$info2 = $parsed['ArrayOfInfo']['Info']['Data'];
}
?>
I have attached xml.php