I'm trying to figure out the best way to go about this. I've recently developed a mailing list program. I'd like to be able to have the ability to enter a string, such as %fname% and when it gets submitted, have the script convert %fname% with the variables $fname from a MySQL Row and then insert it into the mail message and email it. Im not sure exactly how to go about it.
I believe I have to use str_replace, but I'm not exactly sure how to do it with MySQL Rows.
I've searched and searched and am unable to find anything to what I need?