Re: I can't echo object variables

From: Date: Wed, 17 Jul 2002 00:28:16 +0000
Subject: Re: I can't echo object variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-107990@lists.php.net to get a copy of this message
On Tue, Jul 16, 2002 at 01:45:01PM -0400, Michael Zornek wrote: > > I know this slight variation will make it work: > > echo "<p>" . $db->field('name_long'); That's not an "object variable name." That's a function call. You're asking to echo "<p>" and then echoing the value returned by the field() function in the $db object when called with the 'name_long' argument. That's the way you have to do it. --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

« previous php.general (#107990) next »