bookmark_bordermedoo,很好用的数据库框架

只需要引入一个文件,即可很方便的连接数据库进行增删查改。

官方网址 https://medoo.in/

例如:

//insert $database->insert("account", [ "user_name" => "foo", "email" => "[email protected]" ]); //select $datas = $database->select("account", [ "user_name", "email" ], [ "user_id[>]" => 100 ]); //update $data = $database->update("account", [ "age[+]" => 1 ], [ "user_id[>]" => 100 ]); //delete $database->delete("account", [ "AND" => [ "type" => "business", "age[<]" => 18 ] ]);
Code language: PHP (php)