It supposed to work via multible include() of the same script...
Lets see if I can explain it.
do {
$i = 1;
$sql.$i = "SELECT and all that...";
$getit.$i = mysql_db_query ($DBnavn, $sql.$i, $Connect) or die(mysql_error());
$array.$i = mysql_fetch_array($getit.$i);
$totalRows.$i = mysql_num_rows($getit.$i);
if ($anothervalue == $array.$i[]) {
$i++;
if true = including it again
$sql.$i = "SELECT and all that...";
$getit.$i = mysql_db_query ($DBnavn, $sql.$i, $Connect) or die(mysql_error());
$array.$i = mysql_fetch_array($getit.$i);
$totalRows.$i = mysql_num_rows($getit.$i);
if ($anothervalue == $array.$i[]) {
$i++;
if true = including it again
etc...
}
}
} while (another array is OK);
There is probably errors in it here, so don't worry 'bout that - its the $varname.$i thats the big bully here...
It is supposed to be able to include itself "eternaly" to build a potentialy neverending hieraky, and to do so, I need it to come up with new variablenames to prevent the "if" and "while" to clash