use this PHP function: eval()
As quoted from the PHP manual: "eval() evaluates the string given in
code_str as PHP code. Among other things, this can be useful for storing
code in a database text field for later execution"
Further info is in the manual under the Miscellaneous Functions chapter
(XXXVIII).
-----Original Message-----
From: Robert Gormley [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 09, 2001 1:18 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Parsing of db results by PHP
Hi all,
I have a MySQL db which contains table test, field test... one of the
entries is
"<? external($url, $text); ?>"
Where external() is a function i've written which outputs simple text.
I want to be able to put calls to this function into the database, and have
them parsed on rendering... With the above example, the raw code is just
spat to the browser, and doesn't hit the interpreter.
Any ideas?
Regards,
Robert
Robert Gormley
[EMAIL PROTECTED]
http://seabreeze.asn.au/
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]