Philip Ronan wrote:
boclair wrote:
When a php statement is "part" of a markup snippet in a mysql database
table field, what must be done to have the php parse in the document.
The php tags are being displayed
A simple demo demonstrating my problem is at
http://www.boclair.com/test/blobvars.php
Louise
Try looking here: <http://uk.php.net/eval>
Thanks but I need more help
I applied eval as
if (ISSET($myrow['detail'])){$detail=$myrow['detail'];}
$detail=addslashes($detail);
eval("\$detail = \"$detail\";");
where detail is the blob field.
The result is at
http://www.boclair.com/test/blobvars2.php
The image src is line (bolded) still wrong. The value of the page
variable is being contained in the PHP tags.
By removing the PHP tags on the src statement, the document renders
correctly as shown at
http://www.boclair.com/test/blobvars3.php
By also removing the php tags in the style attributes, these are also
rendered correctly as shown at
http://www.boclair.com/test/blobvars4.php
Does this mean that PHP tagging should not be used in blob values?
Louise