PHP Projects

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 (any one)
Newsportal project divided into two modules

  1. User Module
  2. Admin Module

User module

Any one can read the news and also search for particular news. Reader can leave comments to 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 Sub category. Admin can also restore deleted Sub category.
  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 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 the zip file
2. Extract the file and copy newsportal folder
3.Paste inside root directory(for xampp xamp/htdocs, for wampp/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/ phpgurukuloficial@gmail.com (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

Recommended Tutorials for you


Related posts

Shopping Portal ProVersion

Anuj Kumar

User Registration & Login and User Management System With admin panel

Anuj Kumar

Hostel Management System

Anuj Kumar

Small CRM in PHP

Anuj Kumar

Tourism Management System in PHP with Source code

Anuj Kumar

Blood Bank & Donor Management System

Anuj Kumar

User Management System in CodeIgniter

Anuj Kumar

Online Course Registration

Anuj Kumar

Student Result Management system

Anuj Kumar

147 comments

Subir January 31, 2019 at 7:31 pm

Sir, how i change the bg colour of header and footer?

Reply
Anuj Kumar January 31, 2019 at 7:45 pm

Make in CSS file (vendor/bootstrap/css)

Reply
estiv January 30, 2019 at 3:35 pm

Warning: file_get_contents(http://localhost/chatbull-installer/index.php/visitors/chatbox/chatpanel): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\wamp64\www\news\news\news\index.php on line 28

Reply
Anuj Kumar January 30, 2019 at 6:06 pm

This issue is fixed. Download the latest updated code

Reply
iman firdaus January 25, 2019 at 12:12 pm

still error in “Failed to connect to MySQL: Access denied for user ‘root’@’localhost’ (using password: NO)”
Although the database name and password are correct
config.php always reading root

Reply
Anuj Kumar January 28, 2019 at 5:35 pm

Check your database connection.

Reply
Aakriti Chopra January 20, 2019 at 4:16 pm

I’m unable to run the project. Please help me sir Please.
The following errors are coming:
Warning: mysqli_connect(): (HY000/1049): Unknown database ‘newsportal’ in C:\xampp\htdocs\newsportal\includes\config.php on line 6
Failed to connect to MySQL: Unknown database ‘newsportal’
Warning: file_get_contents(http://localhost/chatbull-installer/index.php/visitors/chatbox/chatpanel): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Foundin C:\xampp\htdocs\newsportal\index.php on line 28
Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in C:\xampp\htdocs\newsportal\index.php on line 54
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in C:\xampp\htdocs\newsportal\index.php on line 55
Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in C:\xampp\htdocs\newsportal\index.php on line 59
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in C:\xampp\htdocs\newsportal\index.php on line 60
Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in C:\xampp\htdocs\newsportal\includes\sidebar.php on line 26
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in C:\xampp\htdocs\newsportal\includes\sidebar.php on line 27
Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in C:\xampp\htdocs\newsportal\includes\sidebar.php on line 48
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in C:\xampp\htdocs\newsportal\includes\sidebar.php on line 49
Warning: file_get_contents(http://localhost/chatbull-installer/index.php/visitors/chatbox/chatpanel): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Foundin C:\xampp\htdocs\newsportal\includes\footer.php on line 6

Reply
Anuj Kumar January 21, 2019 at 3:39 am

First create a database newsportal then import newsportal.sql file.

Reply
Aakriti Chopra January 21, 2019 at 4:50 pm

I created a database newsportal and imported the sql file newsportal.sql but still it is not running. I created the database using MySql.

Reply
Anuj Kumar January 21, 2019 at 5:53 pm

Are you getting any error?

Reply
dinesh January 12, 2019 at 2:49 am

data base upload ni ho raha online
Table structure for table `tbladmin`
CREATE TABLE `tbladmin` (
`id` int(11) NOT NULL,
`AdminUserName` varchar(255) NOT NULL,
`AdminPassword` varchar(255) NOT NULL,
`AdminEmailId` varchar(255) NOT NULL,
`Is_Active` int(11) NOT NULL,
`CreationDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`UpdationDate` timestamp NULL DEFAULT ‘0000-00-00 00:00:00’ ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB

Reply
Anuj Kumar January 12, 2019 at 3:37 am

What error are you getting ?

Reply
anil December 25, 2018 at 6:54 am

Fatal error: Call to undefined function random_bytes() in D:\xampp\htdocs\dashboard\Newsportal-Project\newsportal\news-details.php on line 6
this error comes while clicked on any news link ‘read more’

Reply
Anuj Kumar December 25, 2018 at 7:00 am

Update your xampp or wamp.

Reply
gowthamdon December 21, 2018 at 2:41 pm

Sir i got error with this code, can say the version of the xampp to use to run this code

Reply
Anuj Kumar December 22, 2018 at 4:10 am

Use php5.6 for above version

Reply
Legbe December 19, 2018 at 4:11 pm

Please sir can you add tags functions to the system?

Reply
Anuj Kumar December 19, 2018 at 5:05 pm

I will add this feature.

Reply
Santosh Adhikari December 14, 2018 at 11:21 am

Hello sir, In this newsportal project even after deleted means during posts are in trash In main index page that post showing so please help to solve this problem

Reply
Anuj Kumar December 15, 2018 at 7:02 am

This issue is fixed. Download latest updated code.

Reply
Aabid Ansari December 13, 2018 at 6:46 am

sir blog ke liye har post ka alag alag post ka page bnana padega search rank krane ke liye

Reply
Anuj Kumar December 13, 2018 at 4:57 pm

when you click on the post then post details page will be open.

Reply
nomi December 5, 2018 at 7:25 pm

thanks for project sir but we can not add new categories
show error …

Reply
kelvin December 5, 2018 at 8:05 am

Great project.God bless.

Reply
flo December 2, 2018 at 5:25 pm

hello,
How can I add an user for admin panel please ?

Reply
Anuj Kumar December 2, 2018 at 6:33 pm

Add manual in database and same password admin user. Change password after login

Reply
laikha December 1, 2018 at 2:31 pm

sir, i am getting fatal error in news-details.php in the line 06
what changes should i do?
its not displaying the description of the given news
please help me.

Reply
Anuj Kumar December 2, 2018 at 7:23 am

Update your xampp/wamp version. Its working fine at my end.

Reply
sachin November 13, 2018 at 5:54 pm

project has many,errors and when i try to login as admin it is showing wrong password.
Username is admin
Password is Test@12345
This is what i have used

Reply
Anuj Kumar November 14, 2018 at 1:47 am

Details working fine at my end. Please check again.

Reply
Adelin Bonheur November 12, 2018 at 2:39 pm

Hey Kumar I have a website called bonpedia.eu5.org and I need you to change it’s design I need it to be suitable for all browsers and all devices so you can help me after send it to my email adelinbonheur@gmail.com or WhatsApp me (+250)786059597. Thank you a lot for some skills you gave me.

Reply
Prashanth c m November 10, 2018 at 5:14 am

Please send me sir news portal php and mysql project

Reply
Anuj Kumar November 10, 2018 at 5:15 am

Download link given above. Please download from there.

Reply
Marko November 10, 2018 at 5:14 am

Hi i have a problem, when i post a new post it appears at the bottom not the top, why is that?

Reply
Anuj kumar November 10, 2018 at 5:15 am

Make change in query .Use ORDER BY ID DESC

Reply
Marko November 10, 2018 at 5:17 am

In which file do i put that line and where, thank you sir.

Reply
pedro November 10, 2018 at 5:14 am

you can not change the admin password
“the old password does not match”
I have tried anyway and even adding a new admin and password

Reply
Anuj kumar November 10, 2018 at 5:15 am

Issue fixed now. You can download the latest updated code.

Reply
chaitanya saxena November 10, 2018 at 5:14 am

Hii sir
I want to know that for the front end do you use wordpress ?

Reply
Anuj kumar November 10, 2018 at 5:15 am

No. I used core PHP.

Reply
1 2 3 4

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

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