Skip to content

coding-fann/simple-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog

A simple web application using PHP and mysql.
Source code is downloaded from site: EASY BLOG SITE IN PHP WITH SOURCE CODE.

Setup

  1. Setup a mysql database (recommend to use docker)
  2. Execute sql to import db:
    mysql -u root --protocol=tcp -padminpass < blog.sql
  1. Setup php environment and mysqli tool

Blog Introduction

DB Tables

  • comments(postID, commentID, commentDesc, commentAuthor, commentTime)
  • messages(id, name, email, message, time)
  • posts (postID, postTitle, postDesc, postTime, postTag, postAuthor)
  • posts_buffer (postID, postTitle, postDesc, postTime, postTag, postAuthor)
  • users (id, username, firstname, password, emailid, createdon, usertype)
  • users_buffer (id, username, firstname, password, emailid, createdon, usertype)
  • user_post (postAuthor, postID, postLikes, postDisLikes, postComments, postViews

System screenshots

  1. Post Lists Post Lists

  2. Top Posts Top Posts

  3. Contact Us Contact Us

  4. Add a new post Add a new post

  5. Admin Panel: when user posts new post, admin needs to approve it and then it can be displayed in post list.
    Admin Panel

About

A simple blog to demo the usage of PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published