Hey Guys,
For the life of me I can't figure out how to do this, and since I don't know the proper terms, I can't search the net for it.
Basically I have a mailing list program that has a regular text box titled "message". The message is then sent over to a php script that just takes the message and emails it to all the users in the MySQL database using arrays.
How would I go about having php analyze the message and change the strings to the data in the MySQL DB?
For example, if I typed %fname%, it would replace it with data in the fname column of MySQL?
Am I explaining myself right? Sorry for the confusion!
Thanks
Replace strings in text document?
Moderator: General Moderators