Re: [PHP] I can't echo object variables

2002-07-16 Thread Analysis & Solutions
On Tue, Jul 16, 2002 at 01:45:01PM -0400, Michael Zornek wrote: > > I know this slight variation will make it work: > > echo "" . $db->field('name_long'); That's not an "object variable name." That's a function call. You're asking to echo "" and then echoing the value returned by the field()

Re: [PHP] I can't echo object variables

2002-07-16 Thread Alberto Serra
ðÒÉ×ÅÔ! Michael Zornek wrote: > We all know this works: > > echo "$someVar"; > > However this does not: > > echo "$db->field('name_long')"; > > I know this slight variation will make it work: > > echo "" . $db->field('name_long'); > > But it's cumbersome .. Anyway to get the first way to wo

Re: [PHP] I can't echo object variables

2002-07-16 Thread Michael Zornek
Twas 7/16/02 1:47 PM, when "Martin Clifford" <[EMAIL PROTECTED]> said: > Try enclosing it in curly braces. > > echo "${db->field('name_long')}"; Parse error :-( ~ Mike -- Mike Zornek | Project Leader Apple Student Developers The Insanely Great Site with the Insanely Long URL http://www.apples

Re: [PHP] I can't echo object variables

2002-07-16 Thread Martin Clifford
Try enclosing it in curly braces. echo "${db->field('name_long')}"; Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> Michael Zornek <[EMAIL PROTECTED]> 07/16/02 01:45PM >>> We all know this works: echo "$someVar"; However

[PHP] I can't echo object variables

2002-07-16 Thread Michael Zornek
We all know this works: echo "$someVar"; However this does not: echo "$db->field('name_long')"; I know this slight variation will make it work: echo "" . $db->field('name_long'); But it's cumbersome .. Anyway to get the first way to work? ~ Mike -- Mike Zornek | Project Leader Apple Studen