Skip to content

Latest commit

 

History

History
61 lines (33 loc) · 945 Bytes

README.md

File metadata and controls

61 lines (33 loc) · 945 Bytes

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!