Re: PHP in Database Fields..
| From: | szii at sziisoft dot com | Date: | Tue, 25 Jun 2002 02:35:39 +0000 |
| Subject: | Re: PHP in Database Fields.. | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-20079@lists.php.net to get a copy of this message | ||
I'm sorry, brainfart.
Don't exec(), eval().
Apologies.
-Mike
----- Original Message -----
From: "Matthew Tedder" <matthew@tedder.com>
To: <szii@sziisoft.com>
Cc: <php-db@lists.php.net>
Sent: Monday, June 24, 2002 4:00 PM
Subject: Re: [PHP-DB] PHP in Database Fields..
> On Monday 24 June 2002 09:21 pm, szii@sziisoft.com wrote:
> > exec() the query results.
>
> I can't seem to get that to work... Basically, I want to put my variables
> into the code in order to theme HTML code within data base fields.
>
> Consider the following for example:
>
> $glPageFG = "#0000FF";
> $mystr = "<center><font color=$glPageFG>Themed
> Text!</font></center>";
> print exec($mystr); // Doesn't work
> exec($mystr); // Doesn't work
> print $mystr; // Doesn't work after an exec(), either..
>
> The only part of the PHP reference guide I can check online at the moment is
> not telling me much, either..
>
> Matthew
>
> >
> > -Mike
> >
> > ----- Original Message -----
> > From: "Matthew Tedder" <matthew@tedder.com>
> > To: <php-db@lists.php.net>
> > Sent: Monday, June 24, 2002 2:31 PM
> > Subject: [PHP-DB] PHP in Database Fields..
> >
> > > Question:
> > >
> > > I want to put PHP code into database fields holding HTML text, how
> > > can I make it execute that PHP before sending to the browser??
> > >
> > > Currently, I get the text from MySQL and print it.... The browser
> > > shows the PHP code mixed into the HTML.
> > >
> > > Matthew
> > >
> > >
> > > --
> > > Anything that can be logically explained, can be programmed.
> > >
> > > --
> > > PHP Database Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> Anything that can be logically explained, can be programmed.
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php