Topic: Admin generated news box on website
Hi everybody! This is a html type question, so I guess this is the best spot for it.
I have a procedural question. Odds are that there are already a dozen tutorials out there for exactly what I want, but I'm not asking the right questions. I figure asking humans will hopefully get me pointed in the right direction rather than relying on Google's algorythms.
Challenge: I have responsibilityfor a site which has on its front page two news spots - one for a one-line "quick" news update and one for a longer, multi-paragraph news block (by "news" I mean whatever the admin wants to put on there).
The site is all hand coded with no CMS. I am comfortable with php and have MySql available (but not currently using it).
Current Workaround: The page currently uses php include to import an external text file which has both news items plus sundries (like footer information). Editing this file by hand and uploading via FTP is what is currently being done by me after receiving an email with the new news from the admin.
Desired Solution: I want to set it up so that the admin can update the news themselves. They are not web savvy nor know their way around an FTP program.
So far, I think what can be done is this:
Set up a folder "admin" and seal that off via .htaccess. This will allow the admin to log in via their browser with no third programs needed.
In that section, have some forms (or a single form) that will allow the admin to input the new data. Presumably the target for said form(s) would need to be "update file".
To my mind, either the form(s) would need to edit a text file which would then be read by the index, or the form(s) would need to update a database (which would then be read by the index).
It is this third part that I am stuck on. I think I have the theory right, but how to actually go about coding it I am not so sure of.
Any tips or links to tutorials?


