Can i execute a code which is store in a database as a string
i have store this content as a string in my database. column name is
title. i retrieve this code by loop through resultset but the php code is
commented in the html code. I want that any code that is php in database
it should execute. String is given bellow in curly braces:
{
"We have already seen how to embed Java expressions in JSP pages by
putting them between the <%= and %> character sequences. But it is
difficult to do much programming just by putting Java expressions inside
HTML.
JSP also allows you to write blocks of Java code inside the JSP.
<?php if(!empty($chapter['path'])){ echo "<img
src='chapter_images/".$chapter['path']."'>"; } ?>
You do this by placing your Java code between <% and %> characters (just
like expressions."
}
if i am not wrong it is possible but how it is ? please somebody help out
from this problem.
No comments:
Post a Comment