SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: parsing PHP code from mySQL
-
Jan 20, 2001, 06:49 #1
I want to parse PHP code that is stored in my database,
on my html pages, i have a mysql query which displays the content from a feild in the database, but part of the content I have some php code in and i want it to be parsed,
for example
I have
<?PHP echo "$var";?>
in my database feild,
it will display on the html page
<?PHP echo "$var";?> rather than the the contents of $var.
-
Jan 20, 2001, 07:07 #2
- Join Date
- May 2000
- Location
- Canada
- Posts
- 533
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
you want to use eval()
details here: http://www.php.net/evalcogito, ergo sum
Bookmarks