SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Enthusiast ericd's Avatar
    Join Date
    Nov 2000
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.


  2. #2
    SitePoint Evangelist
    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/eval
    cogito, ergo sum


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •