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

2001-09-10 Thread Robert Gormley

Hrm, yup... that does what I want... thanks :) It might be a little bit 
messy... because it'll most likely be embedded in text :) I'm making a 
weblog system for myself, so the full field might be "blah blah blah  blah blah" which will most likely get messy...

Ahh well...

Rob

At 11:52 PM 10/09/2001, Rick Emery wrote:
>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
>
> ""
>
>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]

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]




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

2001-09-10 Thread Rick Emery

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

""

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]




[PHP-DB] Parsing of db results by PHP

2001-09-09 Thread Robert Gormley

Hi all,

I have a MySQL db which contains table test, field test... one of the 
entries is

""

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]