4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 PHP MySQL problem
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
Kdawg
Senior WebHelper
Senior WebHelper


Joined: 21 Apr 2003
Posts: 153

PostPosted: Fri Oct 22, 2004 12:32 am (19 years, 6 months ago) Reply with QuoteBack to Top

Im currently working on a site that is mostly php driven. Anyway I have a table in a db that has the fields name and content. What im doing is getting the content out of the db and displaying it. The problem I put php code in the content field and when I get it and echo it it doesnt parse the code. How do I retrive php code from a db and then run it?
OfflineView User's ProfileFind all posts by KdawgSend Personal Message
adam
Forum Moderator & Developer



Joined: 26 Jul 2002
Posts: 704
Location: UK

PostPosted: Fri Oct 22, 2004 11:24 am (19 years, 6 months ago) Reply with QuoteBack to Top

The eval() function is what you need: http://uk2.php.net/manual/en/function.eval.php

________________________________
It's turtles all the way down...
OfflineView User's ProfileFind all posts by adamSend Personal MessageVisit Poster's Website
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.110963 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme