Try enclosing it in curly braces.

echo "<p>${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 "<p>$someVar";

However this does not:

echo "<p>$db->field('name_long')";

I know this slight variation will make it work:

echo "<p>" . $db->field('name_long');

But it's cumbersome .. Anyway to get the first way to work?

~ Mike
-- 
Mike Zornek | Project Leader
Apple Student Developers
The Insanely Great Site with the Insanely Long URL
http://www.applestudentdevelopers.org 

Personal Site: 
http://www.mikezornek.com 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to