Page 1 of 1

how to use php code stored in mysql database?

Posted: Sat Nov 22, 2008 6:31 pm
by benjamina
I was wondering how to use php code stored in mysql database? I know how pull data from the database but I have stored within the a mysql field some text data. Within that that text I have put in some php variables. The problem is that when the browser renders the data that pulled from my sql, the variable stays as $user for example rather than changing to what I needed to. Is there any way to have the server process the php code stored within the mysql database?

Re: how to use php code stored in mysql database?

Posted: Sat Nov 22, 2008 6:54 pm
by Syntac
Try eval().