Re: [PHP] Pattern matching and replacement!

2001-05-08 Thread heinisch
At 08.05.01 10:03, you wrote: > >Hello all, > >I have a slight problem. I am storing an email template in a MySQL DB. >Portions of the email have text that need to be replaced with variable >values when run through the script >ex: > >Sehr geehrte(r) Frau/Herr {%Last_Name%} , >Dies ist eine autom

RE: [PHP] Pattern matching and replacement!

2001-05-08 Thread Jason Murray
> As you can see. I am using the {% and %} to delimit the parts > that need to be replaced. I can't get the replacements to work > right though. Can someone help? $text = ereg_replace("\{\%Last_Name\%\}", $lastname, $text); Should be something like that :) Jason -- PHP General Mailing Lis

[PHP] Pattern matching and replacement!

2001-05-08 Thread Charles Williams \(CEO\)
Hello all, I have a slight problem. I am storing an email template in a MySQL DB. Portions of the email have text that need to be replaced with variable values when run through the script. ex: Sehr geehrte(r) Frau/Herr {%Last_Name%} , Dies ist eine automatische Zusendung von ACNS Billing and