php-general | 2005051
Date: 05/15/05
- Next message: Krid: "Re: [PHP] what am I missing..interpolation?"
- Previous message: Justin Gruenberg: "Re: [PHP] what am I missing..interpolation?"
- In reply to: Krid: "Re: [PHP] what am I missing..interpolation?"
- Next in thread: Evert | Rooftop: "Re: [PHP] what am I missing..interpolation?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thanks for the info but I tried it both ways and get this error:
Parse error: parse error, unexpected T_FOR, expecting ',' or ';' in
dogs.php(11) : eval()'d code on line 1
On 5/15/05, Krid <krid <email protected>> wrote:
> Hi!
> Try
> eval("echo $string");
>
> blackwater dev wrote:
> > Hello,
> >
> > this works fine:
> >
> > $name="fido";
> > $string="my dog's name is $name";
> > echo $string;//prints my dog's name is fido
> >
> > but when I store the string "my dog's name is $name" in the db and pull it out:
> >
> > //do the query
> > $row=$datab->fetch();
> > $name="fido";
> > $string=$name['db_column'];
> > echo $string//prints my dog's name is $name
> >
> > How can I get it to work with the db?
> >
> > Thanks!
> >
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Krid: "Re: [PHP] what am I missing..interpolation?"
- Previous message: Justin Gruenberg: "Re: [PHP] what am I missing..interpolation?"
- In reply to: Krid: "Re: [PHP] what am I missing..interpolation?"
- Next in thread: Evert | Rooftop: "Re: [PHP] what am I missing..interpolation?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

