RE: [PHP-DB] Parsing of db results by PHP

From: Date: Mon, 10 Sep 2001 13:52:41 +0000
Subject: RE: [PHP-DB] Parsing of db results by PHP
Groups: php.db 
Request: Send a blank email to php-db+get-12294@lists.php.net to get a copy of this message
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:robert@seabreeze.asn.au] Sent: Sunday, September 09, 2001 1:18 PM To: php-db@lists.php.net 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 robert@seabreeze.asn.au http://seabreeze.asn.au/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#12294) next »