I have a table that looks something like this:
| | | |
| Member | Statusflag | Turns |
| | | |
| Fred | 1 | 7 |
| | | |
| Bill | 3 | 8 |
My actual table has more rows and columns, but this will do for discussion.
What I want to do is querry the table and pull it into a two-dimensional arrry and then be able to pick out specifis rows/colums. I know if I do this:
$query = "SELECT * FROM VRPLAYERS where ".membernumber." LIKE '%".$membernum."%'";
$result = @mysql_query($query);
$getit = mysql_fetch_array($result);
Then I can get Fred's "Turns" like this
$Fredsturns=$getit["Turns"];
My question is, can I do a querry like:
$query="SELECT * FROM VRPLAYERS";
so I can get the entire table. If so, then how would I access, for example, Bill's Status Flag? Would it just be:
$Billstatus=$getit[1, Statusflag]; ?
(My table didn;t come out quite the way I wanted .. sorry about that