ID:               16131
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: FreeBSD 4.5
 PHP Version:      4.1.2
 New Comment:

It's okay :)


Previous Comments:
------------------------------------------------------------------------

[2002-03-17 21:52:02] [EMAIL PROTECTED]

This is bogus.  Sorry, and thanks you

------------------------------------------------------------------------

[2002-03-17 21:43:34] [EMAIL PROTECTED]

Please note the following code, and keep the following in mind.

$disk_$x_name is an array posted from a previous page.
(ex. <input name='disk_0_name[]'><input name='disk_0_name[]'>)

The same thing goes for $total_disks.

This particular loop only outputs "0 => 3" one time, and stops.  Why? 
The value of $num_part is 3.  It should at least print it that many of
times?  Bug?

<?

for($x=0;$x<count($total_disks);$x++)
{
      eval('$num_part = count($disk_' . $x . '_name);');

      for($y=0;$y<count($num_part);$y++)
      {
             print $y . " => " . $num_part . "<br>";
      }

}
?>

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=16131&edit=1

Reply via email to