[thelist] php variables in mysql output

Liz Lawson lizlawson at charitycards.co.uk
Wed Dec 6 11:30:46 CST 2000


Thanks Jay.

eval() was the thing, although it took a bit of fiddling to get it to put
the parsed html into a variable rather than just it straight to the
browser...I'm doing this now (it's PHP4 only)

$var = stuff from db;

$var = "return \"$var\";";
$var = eval($var);


If it's not a good idea i'm happy to be educated...

thanks for your help

Liz

-----Original Message-----
From: Jay Greenspan <jay at trans-city.com>
To: lizlawson at charitycards.co.uk <lizlawson at charitycards.co.uk>
Date: 06 December 2000 15:37
Subject: Re: [thelist] php variables in mysql output


don't know if someone replied to this yet...

If I read your question right, I think the eval()
function will do what you need...









More information about the thelist mailing list