retrive data form Database

hi,

i have <?php echo "Hello World"; ?> in Database, when i retrive in one page, how can i parser that? because i recive this:<!–?php echo "Hello World"; ?–>

can i parse the php if i retrieve by Database?

Of course you can parse your php statement with eval() but without the <?php ?> tags, just the echo.

But if you only want to output “Hello World” which is saved in the database then you should read it from db and output the Data as a Variable with echo.You don’t need to save the php-tags and the php command in the database.




$yourVarWithTextFromDb = 'Hello World';

echo $yourVarWithTextFromDb;



thanks !