Now, im showing all the code of what im trying to work with, but all i really have a question on is when the “while” statement ends up giveing me 3 records from my database…is there a way i can turn each of the outputed records(which is just the “name” column that i need) into single variable’s? so that i can use them elsewhere on that page? Please let me know if im not giveing enough information or not explaining things well enough.
<?php
$query = "SELECT * FROM bships WHERE owner ='$player' AND Y = '$playerY' AND X ='$playerX' ";
$result = mysql_query($query) or die(mysql_error());
echo "<table border='0'>"
while($row = mysql_fetch_array( $result )) {
echo "<tr align=center><td>";
echo $row['name'];
echo "</td></td>";
}
echo "</table>";
?>