I just thought something. So i want to know whether it is possible. ( Obviously i am not going to use such a method in website. )
Can you execute PHP coding from Mysql?
Code: Select all
<?
$query = "SELECT * FROM tbl LIMIT 1";
$result = mysql_query($query);
$record = mysql_fetch_object($result);
echo stripslashes($record['somerecord']);
?>Now you have only option to change the database value.
stored text :
this is simple text
<p> This is simple html text </p>
<?php echo "This is simple php text"; ?>
It displays only
this is simple text
This is simple html text
Any idea...