Hi,
I have been using php for a LOT of SQL recently. I have several nested while loops, and I need to use the values clarified in the while loops several times throughout a page. Is there any way to create these while loops once and make variable variables out of them?
ie
$x = 0;
while($x <= 3) {
$a$x = $x + 1;
$x++;
}
The idea of this is to make $a0 = 1, $a1 = 2, $a2 = 3, $a3 = 4. I have been tring to do this for ages but have not yet found a way.
Clarkey Boy