PHP within TEXT in a database
Posted: Fri Jan 10, 2003 9:03 pm
I'm not sure if this is possible, if it is I'm guessing it has something to do with using Eval().
Let's say I have some text in a database which looks something like this..
"Hello. My name is Bob and I've been here <?php a_function('Bob'); ?> times since I started."
Is it possible to run the PHP part of this before the text gets Echo()'ed to the page without having to split up the whole string of text to find any PHP within it?
Let's say I have some text in a database which looks something like this..
"Hello. My name is Bob and I've been here <?php a_function('Bob'); ?> times since I started."
Is it possible to run the PHP part of this before the text gets Echo()'ed to the page without having to split up the whole string of text to find any PHP within it?