PHP Classes

PHP Article System for Posts: Create and manage posts stored in a database

Recommend this page to a friend!
  Info   View files Example   View files View files (14)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2022-04-09 (13 days ago) RSS 2.0 feedNot enough user ratingsTotal: 48 This week: 2All time: 10,252 This week: 72Up
Version License PHP version Categories
postclass 1.0The PHP License5PHP 5, Databases, Content management
Description Author

This package can create and manage posts stored in a database.

It provides a class that can perform the basic operations to store and retrieve posts stored in a database table.

Currently, it implements the article post operations:

- Create a new post

- List created posts

- Retrieve a single post

- Update an existing post

- Delete a post

The class stores an article post in a database table record. That record stores a title, HTML content, image, and the last update date.

A separate class establishes MySQL database connections using the MySQLi extension.

A different configuration script contains the database access parameters.

Picture of Ahmed Khan
Name: Ahmed Khan <contact>
Classes: 9 packages by
Country: Pakistan Pakistan
Innovation award
Innovation award
Nominee: 3x

Details

Post Class

This is simple class which perform CRUD blog posts operations.

Guide

You can find the complete guide for this class on these blogs:

  • https://www.webcodegeeks.com/php/creating-complete-blog-crud-using-mysql-php/
  • https://www.webcodegeeks.com/php/creating-complete-blog-crud-using-mysql-and-php-part2/
  Files folder image Files  
File Role Description
Files folder imagepostimages (1 file)
Accessible without login Plain text file createpost.php Example Example script
Accessible without login Plain text file dbconfig.php Conf. Configuration script
Plain text file DbConnection.php Class Class source
Accessible without login Plain text file deletepost.php Example Example script
Accessible without login Plain text file footer.php Aux. Auxiliary script
Accessible without login Plain text file header.php Aux. Auxiliary script
Accessible without login Plain text file index.php Aux. Auxiliary script
Accessible without login Plain text file LICENSE Lic. License text
Plain text file postclass.php Class Class source
Accessible without login Plain text file posts.sql Data Auxiliary data
Accessible without login Plain text file postview.php Example Example script
Accessible without login Plain text file README.md Data Read me
Accessible without login Plain text file updatepost.php Example Example script

  Files folder image Files  /  postimages  
File Role Description
  Accessible without login Image file 88.png Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:48
This week:2
All time:10,252
This week:72Up
For more information send a message to info at phpclasses dot org.