RE: [PHP-DB] PHP in Database Fields.. From: Chris Barnes (runtimeerror <email protected>)
Date: 06/25/02

eval() might do what your asking for.
I'm no expert tho.

-----Original Message-----
From: Matthew Tedder [mailto:matthew <email protected>]
Sent: Tuesday, 25 June 2002 7:32 AM
To: php-db <email protected>
Subject: [PHP-DB] PHP in Database Fields..

Question:

    I want to put PHP code into database fields holding HTML text, how can I
make it execute that PHP before sending to the browser??

    Currently, I get the text from MySQL and print it.... The browser shows
the PHP code mixed into the HTML.

Matthew

--
Anything that can be logically explained, can be programmed.

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php