Basicly, What im trying to do is have it so I have a multi-dimensional array so like the first "Dimension" is the row and the second "Dimension" is the collumn.
I have got REALLY close (In fact, ive pretty much done it) But theres one problem: This code below only loops once
<?$sql = mysql_query("SELECT * FROM `ranks`");
while($field = mysql_fetch_field($sql)){
while($row = mysql_fetch_array($sql)){
$rank[$row['rank']][$field->name] = $row[$field->name];
$i++;
}
$i++;
}?>
Hopefully someone will know why it only loops once (Well, $i is actualy 2 at the end but thats because each loop loops once)
Anyway, Thanks in advance... Matt.