Re: [PHP] PHP code in a MySQL record

2005-07-29 Thread André Medeiros
Either what Kris says, or you can use a templating engine. See Smarty (http://smarty.php.net) On 7/29/05, Kristen G. Thorson <[EMAIL PROTECTED]> wrote: > Is there a particular reason you need *PHP* in the database? If not, > then use a placeholder system of some sort ( like #var# ) and str_repla

Re: [PHP] PHP code in a MySQL record

2005-07-29 Thread Kristen G. Thorson
Is there a particular reason you need *PHP* in the database? If not, then use a placeholder system of some sort ( like #var# ) and str_replace(): while( $row=mysql_fetch_row($result) ) { echo str_replace( '#var#', $that_var, $row['entry'] ); } kgt Nathaniel Hall wrote: I am working