lz数据库连接 以及返回json格式

use Shared\DB;
require __DIR__ .
'/../config/_config.inc.php'; require __DIR__ . '/../api/src/autoload.php'; $pdo=new DB(); $DB=$pdo->connect([ 'host' => $PARAM_DB_host, 'dbname' => 'mic12345', 'username' => $PARAM_DB_user, 'password' => $PARAM_DB_password, ]);

 

posted @ 2022-10-19 16:17  王越666  阅读(26)  评论(0编辑  收藏  举报