I have some html + php stored in a mysql record. But when I echo the
contents:
$mydata-HTML=input type=text size=40 value=?php
if($searchenquiry)
echo stripslashes(htmlspecialchars($searchenquiry));
? name=searchenquiry /;
the php is not activated; rather I see ?php ... ? in my html
On 30 Oct 2005, at 14:13, John Taylor-Johnston wrote:
echo $contents;
PHP doesn't now that it's PHP - it just treats it as text. You can
tell it to run it as PHP explicitly using:
eval($contents);
Eval is usually worth avoiding, but it will do what you ask.
Your display function could
2 matches
Mail list logo