Re: [PHP] elementary question about reading an array ...

2004-04-01 Thread Kenn Murrah
You can always count on this list ... the winning answer was echo $db[0]->fullname // ah !!! thanks to everyone who helped me... Red Wingate wrote: Yet again maybe one would check the output before replying: Array ( [0] => bc Object ( [fullname] => Kent Huffman ... ) ) This

RE: [PHP] elementary question about reading an array ...

2004-04-01 Thread Jay Blanchard
[snip] You have an array of objects. Try this: echo $db[0]->fullname; [/snip] Crap, I missed that...sorry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] elementary question about reading an array ...

2004-04-01 Thread John W. Holmes
From: "Kenn Murrah" <[EMAIL PROTECTED]> > In code that I did not create (and do not entirely understand), an array > ($db) was created which, if displayed with print_r($db), shows the > following: > > Array ( [0] => bc Object ( [fullname] => Kent Huffman [industry] => > Technology Solutions [

Re: [PHP] elementary question about reading an array ...

2004-04-01 Thread Red Wingate
Yet again maybe one would check the output before replying: Array ( [0] => bc Object ( [fullname] => Kent Huffman ... ) ) This is what we see: echo $db['fullname']; // nope echo $db[0]->fullname // ah !!! -- red Kenn Murrah wrote: [snip] [snip] In code that I did not create (

Re[2]: [PHP] elementary question about reading an array ...

2004-04-01 Thread Richard Davey
Hello Kenn, Thursday, April 1, 2004, 5:38:37 PM, you wrote: >>Array ( [0] => bc Object ( [fullname] => Kent Huffman [industry] => KM> That's what I thought at first, but that's not working ... in fact, I KM> just copied and pasted both your snippets, and neither of them worked KM> here odd,

Re: [PHP] elementary question about reading an array ...

2004-04-01 Thread Kenn Murrah
[snip] In code that I did not create (and do not entirely understand), an array ($db) was created which, if displayed with print_r($db), shows the following: Array ( [0] => bc Object ( [fullname] => Kent Huffman [industry] => Technology Solutions [url] => /tsi [address1] => 2300 W. Plano Parkwa

RE: [PHP] elementary question about reading an array ...

2004-04-01 Thread Jay Blanchard
[snip] In code that I did not create (and do not entirely understand), an array ($db) was created which, if displayed with print_r($db), shows the following: Array ( [0] => bc Object ( [fullname] => Kent Huffman [industry] => Technology Solutions [url] => /tsi [address1] => 2300 W. Plano Parkwa

[PHP] elementary question about reading an array ...

2004-04-01 Thread Kenn Murrah
Greetings. In code that I did not create (and do not entirely understand), an array ($db) was created which, if displayed with print_r($db), shows the following: Array ( [0] => bc Object ( [fullname] => Kent Huffman [industry] => Technology Solutions [url] => /tsi [address1] => 2300 W. Plano P