Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mysql php question

Status
Not open for further replies.

dagger2002

Programmer
Nov 23, 2004
172
US
Ok all here is probably a dumb question that is probably right in front of my face.

I have a mysql db that my php code is interfacing with. I want to put php code into the database, and then execute it on the page.

What is the easiest way to do this?
 
Insert it as a string, and upon retrieval use the PHP function eval(), to evaluate the code you have pulled out.

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top