Re: [PHP] php not activated

2005-10-30 Thread Marcus Bointon
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 be

[PHP] php not activated

2005-10-30 Thread John Taylor-Johnston
I have some html + php stored in a mysql record. But when I echo the contents: $mydata->HTML=""; the php is not activated; rather I see in my html source. It worked before, I thought. P.S. is there a better way to use this function? John snip- display(); echo $contents; f