Ok, this should be a quick "duh, I knew that" question, but I can't figure it out.
I want to use the results of a query twice, in two different spots in the script. I'm using mysql_fetch_array, so I want to be able to call main array using column names rather than column numbers.
Example:
while($var = mysql_fetch_array($query_result))
{
//put result in an array where I can reference it the same way as I called this while statement as many times as I like throughout the script.
}
Of course, if I could just rewind this query, that would work, too.... though I can't seem to find a function for that, either.
I'm sure this is very simple. Anybody?