Skip to content

This is a class that I wrote, so when I want to use databases, I dont need to use native database calls.

Notifications You must be signed in to change notification settings

niesmo/php_db_CRUD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

CRUD for php database

This is a class that I wrote, so when I want to use databases, I dont need to use native database calls. (using MySQLi)

In this class, there are functions that you can use to insert, delete, update, select from the database configued in a more user friendly way.

I made this files before I was familiar with any of the PHP frameworks. (Obviously)

Using the debug variable (turning it on) will allow you to minimze the number queries that you are making to the database. Just for the sake of optimization.

Uinsg the error variable will let you debug error that you might have in the queries. For example, if something is not working.

The main functions are:

  • public function select(...)
  • public function insert(...)
  • public function update(...)
  • public function delete(...)

Other useful functions include:

  • public function lastInsertedId()
  • public function numRows(...)

I will upload the documentation of each function in here soon . . . .

About

This is a class that I wrote, so when I want to use databases, I dont need to use native database calls.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages