By default the evaled code is php, so you need to escape first:
eval('?>'.$your_code_pulled_from_db.'
Michael Winston wrote:
I've been working on this for a few days and can't get it.
I would like to stick some php code into a sql databases and be able to
evaluate it when it's called up.
Foe ex
t;);
fwrite($fh,$code);
fclose($fh);
include($file);
}
It should work.
Javier Tacón Iglesias.
-Mensaje original-
De: Michael Winston [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 18 de septiembre de 2003 17:20
Para: [EMAIL PROTECTED]
Asunto: [PHP] embedding PHP in MySQL
Importancia: Baja
I've been working on this for a few days and can't get it.
I would like to stick some php code into a sql databases and be able to
evaluate it when it's called up.
Foe example, let's say there's some text in a table in MySql that says
"blah blah blah blah blah blah blah blah". I wan the end,
3 matches
Mail list logo