I have the following query in DB, which returns me three information: name, location, total
list ($usuarios,$linha,$total) = buscarTopController();
do{
echo $linha['nome'];
echo $linha['local'];
echo $linha['total'];
}while($linha = mysql_fetch_assoc($usuarios));
I wanted each of these values to be stored in a position of the same array.
Example:
In position: $array[0][0]
, the value of $linha['nome'];
is stored, in position $array[0][1]
the value of local and in $array[0][2]
the value of total .