Hi. I'm a newbie so bear with me.
I have a query from mysql named $query.
I turn the results into an array, via mysql_fetch array, like this:
$result = mysql_fetch_array($query);
then I reverse the array:
reverse_array($result);
how do I now traverse the new reversed array like I would normally using:
while ($result = mysql_fetch_array($query)) {
do stuff
}
Do I use foreach? If so, could someone give me an example? The array I'm getting from mysql has several elements in it, btw.