作业,老师审核下,谢谢

原创 2019-01-19 14:48:29 188
摘要:require 'vendor/autoload.php'; // Using Medoo namespaceuse Medoo\Medoo; $database = new Medoo([ // required 'database_type' => 'mysql', 'database_name' =&g

require 'vendor/autoload.php'; // Using Medoo namespaceuse Medoo\Medoo; $database = new Medoo([ // required 'database_type' => 'mysql', 'database_name' => 'name', 'server' => 'localhost', 'username' => 'your_username', 'password' => 'your_password',  // [optional] 'charset' => 'utf8', 'port' => 3306,  // [optional] Table prefix 'prefix' => 'PREFIX_',  // [optional] Enable logging (Logging is disabled by default for better performance) 'logging' => true,  // [optional] MySQL socket (shouldn't be used with server and port) 'socket' => '/tmp/mysql.sock',  // [optional] driver_option for connection, read more from http://www.php.net/manual/en/pdo.setattribute.php 'option' => [ PDO::ATTR_CASE => PDO::CASE_NATURAL ],  // [optional] Medoo will execute those commands after connected to the database for initialization 'command' => [ 'SET SQL_MODE=ANSI_QUOTES' ]]); $database->insert("account", [ "user_name" => "foo", "email" => "foo@bar.com"]); 增删盖茶

批改老师:天蓬老师批改时间:2019-01-19 15:51:57
老师总结:这样的代码, 叫我怎么看, 下次不允许这样提交了, 必须放在代码块中, 高亮显示提法, 并且格式化

发布手记

热门词条