Hi,
?
while($data = mysql_fetch_array($result)) {
echo $data[text];
}
eval($data['text']);
?
That'll work :-)
http://www.php.net/manual/en/html/function.eval.html
read that for more information.
=
*
...
Ray Hilton
-
[EMAIL PROTECTED]
http://rayh.co.uk
-Original Message-
From: Joseph Koenig [mailto:[EMAIL PROTECTED]]
Sent: 19 June 2001 23:23
To: [EMAIL PROTECTED]
Subject: [PHP] Store PHP Code in MySQL?
I've been playing a little bit trying to store some PHP code in MySQL
and get
I've been playing a little bit trying to store some PHP code in MySQL
and get it to execute. However, it behaves just like expected in that it
just displays the code, and doesn't execute it. Essentially, i want to
do this:
?
while($data = mysql_fetch_array($result
PROTECTED]">news:[EMAIL PROTECTED]...
I've been playing a little bit trying to store some PHP code in MySQL
and get it to execute. However, it behaves just like expected in that it
just displays the code, and doesn't execute it. Essentially, i want to
do this:
?
while($data = mysql_fet
PROTECTED]">news:[EMAIL PROTECTED]...
I've been playing a little bit trying to store some PHP code in MySQL
and get it to execute. However, it behaves just like expected in that it
just displays the code, and doesn't execute it. Essentially, i want to
do this:
?
while($data = mysql_fet
5 matches
Mail list logo