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
> 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
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
3 matches
Mail list logo