PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
$query = "SELECT name FROM members WHERE user = '$fedex_username'";
$result = mysql_query($result) or die();
while ($row = mysql_fetch_array($result)) {
$my_array = $row;
}
?>
Now access your data from within the array $my_array.
PS You could also echo your data from with the while loop also. I like to set the data into arrays for use later. This is just personal preference.
0 in that case happens to be the index of the array you are using. The array should be set up something like $array[int_index]['dbfieldname']. You can use a for loop to run through it or other looping procedure.