PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Kevin01926 wrote:No, i understand that, I had it work withought the <div> tags and tha <p> tags. Any clue how to fix this?
I don't think you fully understand. Again.. variables will NOT be evaluated inside single quotes. Either you must escape the single quotes, or use double quotes. It is my personal preference to use single quotes and escape for variables as it is more readable.
//invalids
$foo = 'This $variable will not be parsed';
//valids
$foo = 'This '. $variable .' will be parsed';
$foo = "This $variable will be parsed";
$foo = "This ". $variable ." will be parsed";