1、控制器接口
public function demo(){
dump("测试控制能否访问");
$sql = 'SELECT * FROM `user`';
dump("测试sql语句是否错误");
$res = Db::query($sql);
var_dump($res);
2、错误提示
could not find driver
}
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
没有数据库驱动程序,你确定你的数据库链接正确吗