[PHP] I'm missing something

2012-05-05 Thread Jim Giner
I have a discrepancy in the number of elements in my arrays and can't see why. Here is some code: Note the lines with the *** *** $plyrs = 0; unset($plyrnames_ar); unset($js_names); unset($js_seeds); *** $rows = mysql_num_rows($qrslts); ***echo in mysql there are $rows rowsbr; while ($row =

Re: [PHP] I'm missing something

2012-05-05 Thread Matijn Woudt
On Sun, May 6, 2012 at 12:38 AM, Jim Giner jim.gi...@albanyhandball.com wrote: I have a discrepancy in the number of elements in my arrays and can't see why. Here is some code: Note the lines with the *** *** $plyrs = 0;  unset($plyrnames_ar);  unset($js_names);  unset($js_seeds); ***

Re: [PHP] I'm missing something

2012-05-05 Thread Jim Giner
My guess would be that you end up with 2 rows having the same $nm, overwriting the value that's already in $plyrnames_ar. - Matijn Genius at work! Thanks - I'll look into that. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] I'm missing something

2012-05-05 Thread Jim Giner
Yup that was it! Something I knew would happen during my design, but forgot to code for now. Jim Giner jim.gi...@albanyhandball.com wrote in message news:e2.dc.30075.c6ea5...@pb1.pair.com... My guess would be that you end up with 2 rows having the same $nm, overwriting the value that's

Re: [PHP] I'm missing something

2012-05-05 Thread Matijn Woudt
On Sun, May 6, 2012 at 12:53 AM, Jim Giner jim.gi...@albanyhandball.com wrote: Yup that was it!  Something I knew would happen during my design, but forgot to code for now. Jim Giner jim.gi...@albanyhandball.com wrote in message news:e2.dc.30075.c6ea5...@pb1.pair.com... My guess would be