php code in database
Posted: Fri Aug 27, 2004 2:24 pm
Oke maby kinda stupid but there must be a way to be able to do this.
i tried out a simple thing like the following
I had this code in a database field
Than i retrieved that row from the database trying to have it displayed on the page. However it didnt do that.
When just using text like "Hello World", it would nicely print out "Hello World"
Is there a way to be able to retrieve html and php code from the database ? Or what is the best way to do this.
i tried out a simple thing like the following
I had this code in a database field
Code: Select all
<?
echo 'Hello World';
?>When just using text like "Hello World", it would nicely print out "Hello World"
Is there a way to be able to retrieve html and php code from the database ? Or what is the best way to do this.