Re: [PHP] print array

2003-06-27 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Fri, 27 Jun 2003 at 12:10, lines prefixed by '>' were originally written by you. > I would off course like it even better when i was able to print to the > values > (word and number) in an HTML table structure, or each new word on a > new line

Re: [PHP] print "$array[$i][0]" pukes

2003-03-06 Thread David T-G
Ernest, et al -- ...and then Ernest E Vogelsinger said... % % At 10:44 06.03.2003, David T-G said: % [snip] % >...and then Leif K-Brooks said... % >% % >% print "$i :: {$manilist[$i][0]}\n"; % >Aha! Perfect. Here I'd been trying such things with the leadi

Re: [PHP] print "$array[$i][0]" pukes

2003-03-06 Thread Ernest E Vogelsinger
At 10:44 06.03.2003, David T-G said: [snip] >...and then Leif K-Brooks said... >% >% print "$i :: {$manilist[$i][0]}\n"; >Aha! Perfect. Here I'd been trying such things with the leading $ on >the *outside* of the braces. [snip]-

Re: [PHP] print "$array[$i][0]" pukes

2003-03-06 Thread David T-G
Leif, et al -- ...and then Leif K-Brooks said... % % print "$i :: {$manilist[$i][0]}\n"; Aha! Perfect. Here I'd been trying such things with the leading $ on the *outside* of the braces. Thanks, all, for the help! Back on the 'net after a great all-night storm (which in fact hasn't stopped

Re: [PHP] print "$array[$i][0]" pukes

2003-03-05 Thread Leif K-Brooks
print "$i :: {$manilist[$i][0]}\n"; David T-G wrote: OK. That works, though it isn't pretty. Is there any way I can avoid doing the dot dance? I'd rather something like print "$i :: ${manilist[$i]}[0]\n" ; (which I know to not work! :-) than to have to open and close; that's just not very cl

Re: [PHP] print "$array[$i][0]" pukes

2003-03-05 Thread David T-G
Chris -- ...and then Chris Wesley said... % % On Wed, 5 Mar 2003, David T-G wrote: % % > $m = count($manilist) ; % > for ( $i=0 ; $i<$m ; $i++ ) % > { print "$i :: $manilist[$i][0]\n" ; } ... % % Actually, it's literally printing "[0]" after it prints "Array". PHP is Right. % detect

Re: [PHP] print "$array[$i][0]" pukes

2003-03-05 Thread Chris Wesley
On Wed, 5 Mar 2003, David T-G wrote: > $m = count($manilist) ; > for ( $i=0 ; $i<$m ; $i++ ) > { print "$i :: $manilist[$i][0]\n" ; } > > I simply get 'Array[0]' out for each inner.. Clearly php is seeing that > $manilist[$i] is an array, telling me so, and then happily printing the > "[0

Re: [PHP] Print array items only once

2001-05-09 Thread sean
Thanks very much Nicholas, Sean. ""Nicolas Guilhot"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You can try to modify your SQL query and add the "DISTINCT" statement !! It > will return each distinct row only once. > > example "SELECT DISTINCT cat_id, ca

RE: [PHP] Print array items only once

2001-05-09 Thread Nicolas Guilhot
You can try to modify your SQL query and add the "DISTINCT" statement !! It will return each distinct row only once. example "SELECT DISTINCT cat_id, cat_name FROM categories" Regards, Nicolas -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 9 mai