How to create a blog website using php and mysql database

How to create an online blog or news website using PHP and MySQL database. Follow the guidelines in the article below. A localhost server (xampp) is needed to run this project.

How to create a blog website using php and mysql database
How to create a blog website using php and mysql database

Table of content

  1. About the blog website script with source code in php.
  2. Features of the blog website script with source code in php.
  3. Requirements
  4. Script files
  5. Steps to run this script (installation)
  6. Screenshots

About the blog website script with source code in php

This project is a blog platform script which is written in PHP and uses MYSQL database and can be used to create an online blogging or news sharing website. The project is responsive and has a very good design. Administrator of the platform can add posts from the admin panel and it will be shown on the website homepage. This platform also has a comment system. This blog script has so many features which are listed below.

Features of the blog website script with source code in php.

Admin Panel Features

  • Dashboard: gives you the total news or blog posts, total category, trash, etc.
  • Add Category.
  • Manage already added category (Edit or Delete).
  • Add Sub category.
  • Manage already added sub category (Edit or Delete).
  • Add posts.
  • Discard posts.
  • Posts featured image.
  • Manage posts.
  • Update required pages like about, terms page, contact us, privacy, etc.
  • Change Password.
  • View comments, both pending and approved.
  • Delete comment.
  • And other settings.

User/ student side

  • Read blog posts.
  • Search for news
  • Post category
  • Recent news.
  • Live currency chart.
  • Scroll to top feature.
  • Language translate feature.
  • Mobile responsive.
  • Write guest post.
  • Search system.
  • Contact system

Server Requirements

  • PHP 5.6 upwards
  • XAMPP or hosting plan

Script Files

  • PHP
  • Database – MYSQL
  • Readme file.

Steps to run this script (installation)

A localhost server (XAMPP) should already be installed in your pc before proceeding with the steps below.

Video Demonstration

watch this video for easy use.

Xampp 

  1. Click on the download button below this article
  2. Extract the code.
  3. Paste the extracted folder in C:/xampp/htdoc.
  4. Run your XAMPP control panel and start Apache and MySql.
  5. Open any browser.
  6. Go to this URL “http://localhost/phpmyadmin/”.
  7. Click on New at the left.
  8. Enter “blog”then click on create.
  9. Click the import tab on tab menu.
  10. Click on browse button and select the file name “blog.sql” found in the database folder we extracted earlier and click on Go.
  11. Open a new tab on your browser and go to the path. E.g. “http://localhost/[folder name]
  12. The home page will be displayed, login and continue.
  13. For admin login visit “http://localhost/blog/admin” and login.
  14. Read the README file for the admin login details.

ZIP PASSWORD : watch video

Screenshots

How to create a blog website using php and mysql database

How to create a blog website using php and mysql database

How to create a blog website using php and mysql database

How to create a blog website using php and mysql database