# [EMAIL PROTECTED] / 2006-12-24 18:11:03 -0800:
> function display($list, $in, $out, $save, $req, $x)
> {
> for($i = 0; $i < count($in); $i++)
> {$j = $i + 1;
> // two sets of links displayed instead of one
> for($i = 0; $i < count($out); $i++)
> {$j = $i + 1;
> // two sets of links displayed instead of one
> for($i = 0; $i < count($save); $i++)
> {$j = $i + 1;
> // two sets of links displayed instead of one
> for($i = 0; $i < count($req); $i++)
> {$j = $i + 1;
> // two sets of links displayed instead of one
> The print lines above are supposed to produce a list of links to files.
> In the web display I get duplicate sets of links which seems to mean
> that the loops in the function are running twice, and in one instance
> three times instead of once.
Look at the variable names you use for iteration.
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php