Php edit webpage code?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tomsace
Forum Contributor
Posts: 167
Joined: Thu Jan 01, 2009 8:07 pm

Php edit webpage code?

Post by tomsace »

Hi,

I have been trying to add a feature into the admin section of my site so I can edit a webpage through my site.
I want it to be like this....
When I first open the page for it to just show the text on the site but to have an edit button below it.
When I click edit I can then edit the text then with a save button below it.
When I save it, it goes back to stage 1 when I can just view the text of the page.

Is this possible? Any help will be much apprechiated.

Thanks,
Tom.
mbdigital
Forum Newbie
Posts: 21
Joined: Tue Feb 10, 2009 7:32 am
Location: NorthWest, England

Re: Php edit webpage code?

Post by mbdigital »

That's a pretty standard way of doing things, have you through of looking at some pre-prepared frameworks? I.e. Joomla / Drupal etc
If you wish to create something from scratch there are a number of good tutorials on google for this..
tomsace
Forum Contributor
Posts: 167
Joined: Thu Jan 01, 2009 8:07 pm

Re: Php edit webpage code?

Post by tomsace »

Hi,
Yes I have looked at joomla but I will get no satisfaction from installing pre-made scripts and I learn nothing from it.
I have tried looking at google but I don't know what to search for the correct results!?
Any ideas? Or do you know a website with these tutorials?

Tom.
mbdigital
Forum Newbie
Posts: 21
Joined: Tue Feb 10, 2009 7:32 am
Location: NorthWest, England

Re: Php edit webpage code?

Post by mbdigital »

Hi,

It's been a while since I've look for tutorials on this but I've heard this is a good starting point:
http://www.freewebmasterhelp.com/tutorials/phpmysql/1

Let me know if that helps.
tomsace
Forum Contributor
Posts: 167
Joined: Thu Jan 01, 2009 8:07 pm

Re: Php edit webpage code?

Post by tomsace »

Hey,

Thanks for the site but it isnt very good??

I click a category, for example php or cookies but I keep getting the same webpage whatever link I click!?
mbdigital
Forum Newbie
Posts: 21
Joined: Tue Feb 10, 2009 7:32 am
Location: NorthWest, England

Re: Php edit webpage code?

Post by mbdigital »

My Apologies, something must have happened there since my firend used it.
You could also try this: http://dev.mysql.com/tech-resources/art ... index.html
Post Reply