Function stored in database is not executing.
I have following code for output
$q = mysql_query("SELECT * FROM pages WHERE page_id='$id'");
$r = mysql_fetch_object($q);
//print the pages content
echo "<h1>$r->page_title</h2>";
echo $r->page_content;
page_title & page_content are database column
page_content column have following data
slider(); // it may be text or function OR both text + function
slider function
function slider(){
echo "Hey! You have Slider";// query to display slider images from database
}
Output:
slider();
Output Expected:
Hey! You have Slider