Re: [PHP] Conditional code execution

2004-01-26 Thread Craig Jackson
On Mon, 2004-01-26 at 10:11, Chris Hayes wrote: > At 17:03 26-1-04, you wrote: > >I'm sure how to frame the question. Here's the problem. > >I would like to store PHP code in a database. Then I would like to > >while-loop through the array executing the code something like this: > > > > >while($RS=

Re: [PHP] Conditional code execution

2004-01-26 Thread Craig Jackson
On Mon, 2004-01-26 at 10:09, John W. Holmes wrote: > From: "Craig Jackson" <[EMAIL PROTECTED]> > > > This would require something like the equivalent of eval in javascript. > > Does PHP have that capability? > > Yes. Oddly enough it's called eval(). Imagine that... > > ---John Holmes... -- PHP

Re: [PHP] Conditional code execution

2004-01-26 Thread Chris Hayes
At 17:03 26-1-04, you wrote: I'm sure how to frame the question. Here's the problem. I would like to store PHP code in a database. Then I would like to while-loop through the array executing the code something like this: This would require something like the equivalent of eval in javascript. Does

Re: [PHP] Conditional code execution

2004-01-26 Thread John W. Holmes
From: "Craig Jackson" <[EMAIL PROTECTED]> > This would require something like the equivalent of eval in javascript. > Does PHP have that capability? Yes. Oddly enough it's called eval(). Imagine that... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Conditional code execution

2004-01-26 Thread Craig Jackson
I'm sure how to frame the question. Here's the problem. I would like to store PHP code in a database. Then I would like to while-loop through the array executing the code something like this: This would require something like the equivalent of eval in javascript. Does PHP have that capability?