Re: [PHP] alternatively

2006-10-02 Thread Richard Lynch
On Mon, October 2, 2006 9:19 am, Jochem Maas wrote: > David Tulloh wrote: >> $mail_body .= "... Title: $row[title] "; > > does that actually work? not that I care - I still consider it wrong. It's a Documented Feature... How wrong can it be?... [shrug] Though I confess I've got more than a few n

Re: [PHP] alternatively

2006-10-02 Thread Richard Lynch
Take out the ' for array keys inside of " "...$row[title]..." Which *does* seem kind of whack, honestly, but so it goes... On Mon, October 2, 2006 7:13 am, Ross wrote: > How can I get this line to work > > $mail_body .= " sans-serif\"> Title: $row['title'] "; > > The $row['title'] variable is

Re: [PHP] alternatively

2006-10-02 Thread Dave Goodchild
Just use {$row['title']} or ${row['title']}, it will save you headaches. I may be a purist, but it's also satisfying as it still indicates the array element is a string rather than a constant. Anyway, the above two methods are the preferred way I think.

Re: [PHP] alternatively

2006-10-02 Thread Jochem Maas
Ford, Mike wrote: > On 02 October 2006 15:20, Jochem Maas wrote: > >> David Tulloh wrote: >>> Ross wrote: How can I get this line to work $mail_body .= ">>> sans-serif\"> Title: $row['title'] "; The $row['title'] variable is the problem. >>> Drop the quotes when you are in

RE: [PHP] alternatively

2006-10-02 Thread Ford, Mike
On 02 October 2006 15:20, Jochem Maas wrote: > David Tulloh wrote: > > Ross wrote: > > > How can I get this line to work > > > > > > $mail_body .= " > > sans-serif\"> Title: $row['title'] "; > > > > > > The $row['title'] variable is the problem. > > > > Drop the quotes when you are inside a quo

Re: [PHP] alternatively

2006-10-02 Thread Jochem Maas
David Tulloh wrote: > Ross wrote: >> How can I get this line to work >> >> $mail_body .= "> sans-serif\"> Title: $row['title'] "; >> >> The $row['title'] variable is the problem. > > Drop the quotes when you are inside a quoted string. > $mail_body .= "... Title: $row[title] "; does that actually

Re: [PHP] alternatively

2006-10-02 Thread David Tulloh
Ross wrote: > How can I get this line to work > > $mail_body .= " sans-serif\"> Title: $row['title'] "; > > The $row['title'] variable is the problem. Drop the quotes when you are inside a quoted string. $mail_body .= "... Title: $row[title] "; -- PHP General Mailing List (http://www.php.net/)