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

[PHP] print array

2003-06-27 Thread Dore van Hoorn
First of all, I'd like to thank you all very much for helping me with my arra-problem, array_count_values is exactly what i was looking for and it is working perfectly! But.. print_r(array_count_values($array)) gives something looking like this: Array([computer] => 2 [harddrive] => 1 [crash] => 1)

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

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

2003-03-05 Thread David T-G
Hi, all -- I have a two-dimensional array built from reading a file and I'm having trouble accessing a value of an inner array. I know, particularly with some help from print_r(), that the arrays are filled in properly. I can do $m = count($manilist) ; for ( $i=0 ; $i<$m ; $i++ ) { $ml

Re: [PHP] Print array items only once

2001-05-09 Thread sean
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 2001 12:02 > À : [EMAIL PROTECTED] >

RE: [PHP] Print array items only once

2001-05-09 Thread Nicolas Guilhot
TED]] Envoyé : mercredi 9 mai 2001 12:02 À : [EMAIL PROTECTED] Objet : [PHP] Print array items only once Hi all, I am querying the categories field in my database to rurn the various categories that can be clicked on. Problem is, if I have 5 items in a category, my categories query lists the catego

[PHP] Print array items only once

2001-05-09 Thread sean
Hi all, I am querying the categories field in my database to rurn the various categories that can be clicked on. Problem is, if I have 5 items in a category, my categories query lists the category 5 times.. I am trying to work out how to say: while($qry = mysql_fetch_array($res)){ print $res["