hi,
i'm developing an intranet site that runs on a single template file. content and additional template settings are gathered or queried from a Content Library using MySQL.
i also included some PHP variables as part of the content to be filled into the template queried from the MySQL database. here's the problem, whenever i try to call the content from MySQL and fill them to the template, the php variables are echoed to the HTML source rather than parsed by PHP server. does it have something to do with storing strings with dollar "$" signs to MySQL?
i need help to resolve this problem.
=============================================
sample code:
$myQuote = "The quick brown fox jumps over the lazy dog.";
$myText = "<b><i>$myQuote</i></b>";
then $myText were entered to MySQL as LONGTEXT datatype
=============================================
first i tried to query for the content from my database, then ECHOed the content to my template.
but when i try to view the source outputed to the browser, it gave me this chunk:
<b><i>$myQuote</i></b>
the $myQuote isn't parsed
=============================================