Skip to content

Ok9xNirab/php-crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

php-crud

this is a helper for php crud operation.


How to Use

folder sceenshot

create a new file index.php

then , open index.php & config.php in your text editor .

In config.php , You need to setup Database connection as first.

then index.php,

put these at the top ,

include 'database/index.php';

For Insert :

DB::insert($table, $data);

$table = its your table name,

$data = A array ,where key will be the column of your table.

For select :

DB::select($table);

Example :

$results = DB::select($table);

while ($rows = $results->fetch_assoc()) {

	echo $rows['name'];
}

For Update :

DB::update($table, $data, $id);

For Delete :

DB::delete($table, $id);


For more Links

Enjoy!

About

this is a helper for php crud operation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages