Admin can post the content ( read post.php file ) by entering title, short description, date and full description of the news or event. He can assign the content to a particular category. There is a server side validation to take care of wrong dates, short or long length of posting. It will generate error message saying what is wrong in posting. We have used post back technique to keep the entered content within the form in case of any error message. This will enforce some restrictions like, title must be of some length, short description is to be entered etc.
After posting the content will be available in public area. Admin can view the same details inside admin area and delete them also.
In the main public area the recent top 10 contents ( or news or events ) will be displayed. Please read index.php page. This is done by applying the order by clause in date of post field. Above this all the category names are displayed with the number of content present in that category. Users can click the category name and view that content of that category only.
This article is written by plus2net.com team.
| ▼ More on Managing Content from Admin area using PHP MySQL