News Portal Project in PHP and MySql

Project Name :   Newsportal

Language Used                   :  PHP

Database                              :  My SQL

User Interface Design       :  HTML, AJAX,JQUERY,JAVASCRIPT

Web Browser                      :  Mozilla, Google Chrome, IE8,OPERA

Software                               :    XAMPP / Wamp / Mamp/ Lamp (anyone)

Newsportal project divided into two modules

  1. User Module
  2. Admin Module

User module

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

Admin Module

  1. Secure admin login system
  2. Admin dashboard
  3. Category – In this section admin can add/update/delete the category. Admin can also restore deleted category.
  4. Sub- Category – In this section admin can add/update/delete the Subcategory. Admin can also restore deleted Subcategory.
  5. Post – Admin can add /update / delete news posts. admin can also view deleted news post in trash post section and restore deleted posts.
  6. Pages –  Admin can manage the contact of about us and contact us page.
  7. Comments –  Admin can approve/ unapprove / delete reader comments.

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 / email : admin/ (use any one)

Password : Test@12345

View Demo —————————————————–

View Demo

Download full SourceCode (Newsportal Project)
Size: 19.8 MB
Version: V 3

Purchase News portal Project Report

Purchase Report in Rs. 249 / $3.5

Anuj Kumar

This is Anuj Kumar. I’m a professional web developer with 4+ year experience. I write blogs in my free time. I love to learn new technologies and share with others.
I founded PHPGurukul in September 2015. The main aim of this website to provide PHP, Jquery, MySQL, PHP Oops and other web development tutorials.

Recommended Tutorials for you


This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Nice project sir, but it’s shows an error sir when I click read more button it shows “undefined function randombytes”

  • Nice project sir, this is helping us as young website developer…
    I am having some problem went i try to update some posts. i also can create new Category or sub category. Even went some time i want to create some new post.

  • hi big Bro, i have the following mistake:
    ) Warning: mysqli_connect(): (HY000/1049): Unknown database ‘newsportal’ in C:\wamp64\www\newsportal\includes\config.php on line 6
    i have created the database

  • Hello sir….I can’t login for admin…the passwordis not match…i have tried to insert another record in database but try to login …reply me user not register with us…

  • hello i need help!! when i try to click read more on new of the main pagethere is erro : Call to undefined function random_bytes() in Fatal error: Call to undefined function random_bytes() in C:\xampp\htdocs\Newsportal Project\newsportal\news-details.php on line 6

  • Nice project sir, this is helping us as young website developer…
    I am having a warning of mysqli_fetch_array() expects parameter 1 to be mysqli_result,bool in line 55,60 of new sport alpine ex.php, 27,49 and of side bar. Php of users.
    And Admin\index.php on line 14.
    What does that mean sir?

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.