db.php::red_apple:简单PHP类,用于执行标准MySQL操作,例如选择,插入,更新和删除行

时间:2024-03-21 16:55:06
【文件属性】:

文件名称:db.php::red_apple:简单PHP类,用于执行标准MySQL操作,例如选择,插入,更新和删除行

文件大小:14KB

文件格式:ZIP

更新时间:2024-03-21 16:55:06

PHP

数据库.php Database.php是一个简单PHP类,用于执行标准MySQL操作,例如选择,插入,更新和删除数据库行。 它还包括一些不错的功能,例如自动转义以保护数据库免受恶意代码的侵害以及阵列的自动序列化。 用法 发起 通过创建new Database()对象来启动数据库连接。 require_once ( 'Database.php' ); $ db = new Database ( $ database_name , $ username , $ password , $ host ); // $host is optional and defaults to 'localhost' 选择 从数据库表中选择行 用法: $ db -> select ( $ table , $ where , $ limit , $ order , $ where_mode , $ sele


【文件预览】:
db.php-master
----src()
--------Database.php(18KB)
----.travis.yml(269B)
----composer.lock(55KB)
----phpunit.xml(576B)
----README.md(4KB)
----tests()
--------DatabaseTest.php(6KB)
----.gitignore(29B)
----composer.json(467B)

网友评论