[PHP] count() multidimensional array

2001-05-19 Thread Dean Martin
I have a multidimensional array being created by a form. Most fields are pre-populated with a few that people can add to the list. There is a box beside each row that they can check whether that item is in or not. My code to list only the rows that were checked is this.. for ($j=1 ; $j=5;

Re: [PHP] count() multidimensional array

2001-05-19 Thread Chris Lee
can't say for sure, but a good guess is some problems with undefined vars. try using fforeach insted, its alot simpler. ?php foreach($check as $j_pos = $j_val) foreach($check[$j_pos] as $i_pos = $i_val) $message .= {$pre[$j_pos][$i_pos]} {$post[$j_pos][$i_pos]}

Re: [PHP] count() multidimensional array

2001-05-19 Thread Hugh Bothwell
Dean Martin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... My code to list only the rows that were checked is this.. for ($j=1 ; $j=5; $j++) SNIP This code is creating an endless loop and times out the server with memory overruns. What am I missing? In the