So what I am trying to do is pass an array through an external XML file.....like the example below:
xml.php?Username=username1&Username=username2&Username=username3&Username=name4
I am somewhat new to PHP and am still learning as I go, and cannot figure out how to go about doing this.
Here is my PHP Code:
$query = "SELECT * FROM users ORDER BY Rand() LIMIT 100";
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result)){
$username = $row['username'];
}
$xml_location = "http://localhost/xml.php?Username=$username";
Obviously this won't work....Again I can't figure out how to pass each name and add &Username= before it
Thanks in advanced