Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- accessing variables in a while loop
February 28, 2005, 6:50 pm
rate this thread
ok, this is bugging me now.
I do a mysql query and put the results in an array, then I do a
'while' loop saying roughly..........
$var1 = $row['var1'];
$var2 = $row['var2'];
where $row is the array carrying the results from the mysql query.
whenever I reference the $var1 variable, it's empty. The query is
right with no errors, do i need to make the $var1 global? how?