> echo $row[code];
You want eval, but since your code starts off with HTML, and eval expects to
be doing PHP, you need to do more like:
$html = $row['code']
eval("?>$html<?php");
In essence, you are sorta doing the opposite of how include automatically
switches back to HTML mode, and you break out of PHP to "eval" your HTML...
WARNING:
This $html isn't coming from untrusted web-surfers, is it?...
[shudder]
That would be *really* dangerous, as you're giving them complete access to
installing any PHP scripts they like on your server...
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
--
PHP General 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]