php codes from mysql db?

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
fe505
Forum Newbie
Posts: 1
Joined: Thu Feb 12, 2004 11:40 pm

php codes from mysql db?

Post 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.
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Allowing people to run their own code on your site would be very insecure.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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.
Post Reply