First, a DO-WHILE is almost the same as a WHILE except that in a DO-WHILE, it forces the first iteration to run.
Next, anything you want handled must be inside the loop. Therefore, the $i++ is only executed AFTER the loop finishes.
Therefore in your case, you never increment the variable and therefore, the CONDITION never happens and the loop just
keeps going on and on until your server throws an error. Try changing this:
[php]
$x = 0;
do {
Display $A [$x];
} while (x < 14)
$x++;
[/php]
To this:
[php]
$x = 0;
do {
echo $A [$x] = rand (0,999);
$x++;
} while (x < 14)
[/php]
Or whatever you are trying to do…