On Thursday 25 July 2002 04:49, Raquel Rice wrote: > On Wed, 24 Jul 2002 13:23:54 +1200 > > David Robley David Robley <[EMAIL PROTECTED]> wrote: > > In article <[EMAIL PROTECTED]>, > > [EMAIL PROTECTED] says... > > > > > I've run out of ideas. I want to store a variable name and a > > > function call in a text column of a MySQL database and have them > > > interpreted at runtime, but I can't figure out how to do it. > > > > > > Examples: > > > "This is the $nbrtimes you've asked." > > > and > > > "$answer is the square root of sqrt($nbr)." > > > > > > I've tried to figure out "eval()" but don't seem to be able to > > > > make > > > > > it work either. Any ideas? > > > > Perhaps if you can show what you have tried and the problem you > > have had, > > someone may be able to help you further. > > > > -- > > David Robley > > I'm sorry to hear that you don't know how to store a variable name > in a database and then evaluate that same variable name as a > variable after it's retrieved from the database. Maybe someone else > will have an idea?
eval() is what you need. As David said, show us what you have done and maybe we can tell you why eval() failed to work. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* You can't evaluate a man by logic alone. -- McCoy, "I, Mudd", stardate 4513.3 */ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php