"Robert Gormley" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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.

Either trim the string and eval(), or change the database to store just the
contents of $url and $text and do the call to external() in your PHP code.
Personally, I think the second is preferable (by the principle of
orthogonality ;-).



-- 
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]

Reply via email to