Source Code

News Portal Website Using PHP and MySQL

News Portal Project using PHP and MySQL is a web-based application. It is a dynamic system. It can be maintain and changed easily because it is based on the database. It’s contain web pages that are generated in real-time. These pages include Web scripting code, such as PHP. It is fully secured from unauthorized access. In a word In a word it can say that our Online News Portal website is a completely dynamic website.

Project Modules

Newsportal project divided into three modules

  1. User Module
  2. Admin Module
  3. Sub-Admin

User module
Anyone can read the news and also search for particular news. The reader can leave comments on the particular news.

Admin Module

Secure admin login system

Admin Dashboard: In this section admin can view, listed categories & sub categories, total published news & trashed news.

Sub-admin: In this section, admin can add/edit/delete sub-admin.

Category – In this section admin can add/update/delete the category. Admin can also restore deleted category.

Sub- Category – In this section admin can add/update/delete the Subcategory. Admin can also restore deleted Subcategory.

Post – Admin can add /update / delete news posts. admin can also view deleted news post in trash post section and restore deleted posts.

Pages – Admin can manage the contact of about us and contact us page.

Comments – Admin can approve/ unapproved / delete reader comments.

Sub-Admin Module

Sub-Admin and Admin features are the same except Sub-Admin creation. Sub-Admin can’t create the Sub-Admins.

How to run NewsPortal Project

1. Download the  zip file
2. Extract the file and copy newsportal folder
3.Paste inside root directory(for xampp xam/htdocs, for wamp wamp/www, for lamp var/www/html)
4. Open phpmyadmin (http://localhost/phpmyadmin)
5. Create a database with name newsportal
6. Import newsportal.sql file(given inside the zip package in sql file folder)
7.Run the script http://localhost/newsportal (frontend)
8. For admin panel http://localhost/newsportal/admin
Credential for admin panel :
username : admin
Password : Test@123

Credential for Sub-admin panel :
username : subadmin
Password : Test@123

Click Here For Download Source Code

Leave a Reply

Your email address will not be published. Required fields are marked *