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
[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
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 [
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 (
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,
[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
[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
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
8 matches
Mail list logo