Multi Line question

Hey Guys,

Quick question about PHP. I’m making a simple HTML template maker and I am storing the code in a database. People just type in what they want for certain parts. The problem is that the code I entered into the database has variables in the code- Something like <table><tr><td>$maintext</td></tr></table> .
So the variables are being passed and passed and eventually are printed in a multi line but instead of printing the variables they have been entering (let’s say $maintext=“Welcome to the home page!”; it doesn’t say “Welcome to the home page” in the multi line, it just puts $maintext still. And, I know the variables are working because they are printed on the page.

Please help,

peter