Page 1 of 1

php codes from mysql db?

Posted: Thu Feb 12, 2004 11:40 pm
by fe505
Hi, I'm new to php and have a question.

I made a little content/page thing in php that creates pages of content when you enter info into a form. The info will go into the db and then I made something that would list all the content/pages. So far I see that it works for html codes but when I put php codes the codes doesn't get parsed (i think that's what it's called). The page would show up blank but then in the source I would see the php codes. Is there a way to parse the php codes when the php codes are extracted from the db? I hope I explained this well.

Thanks if anyone can help. I'm just trying to create content without having to deal with new php files everytime I want something.

Posted: Fri Feb 13, 2004 12:06 pm
by McGruff
Allowing people to run their own code on your site would be very insecure.

Posted: Fri Feb 13, 2004 7:33 pm
by John Cartwright
heh, thats a terrible idea. Anyone with half a brain in php could do some very damaging things and gain access to parts that they should not be able to.