rashidfarif/simple_php_crud 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rashidfarif/simple_php_crud

Composer 安装命令:

composer require rashidfarif/simple_php_crud

包简介

this library perform crud operations width build in template or using functions

README 文档

README

One file Perform Crud operation Easy

in This File All Crud Operation Created Like

select table one paramer is table name

settable($table)	

return current table name no param requered

gettable()

Select All Data From Data Base return object no param

all()

Find and data With id and return object with data.passed id where data find in database

find($id) 

Insert data to database and return object width insert row id.the array keys database colums name and value where insert in database

insert(array())

Update data from database.the array keys are database fields names and the value where updated to.the second param is id where data update

update(array(),$id)

delete data where row id passed in and return object width deleted row in

delete($id) 

example :

require_once "connection.php"; 
$con=new connection(host_name,user_name,password,database_name); 
$con->settable(table_name); 
$con->all();

Error handler is Created in this File if error accur then eroor handler Call Automatically

Example :

require_once "connection.php";
$con=new connection("host","user","password","db_name");
$con->settable("test");
$con->all();

output :

Table 'db_name.test' doesn't exist on line number 3

also html popup error oe success message javaScript function available the function name Is mesaage(message,error/success)

and the popup tag css available in it.

example :

<script>
message("Error Found","error");
</script>

this message tag Show top right corner in the web page

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-13