[thelist] php variables in mysql output

Jay Sayer jay at hit.co.nz
Wed Dec 6 15:47:42 CST 2000


Wrong address sorry.

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Liz Lawson
Sent: Thursday, December 07, 2000 6:31 AM
To: jay at trans-city.com; thelist at lists.evolt.org
Subject: Re: [thelist] php variables in mysql output


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...






---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt ! 






More information about the thelist mailing list