When I query the database data, an error message appears. How can I solve it?
古月胡!
古月胡! 2019-07-17 13:47:33
0
1
1457

1. Controller interface

public function demo(){
dump("Test whether the control can be accessed");
$sql = 'SELECT * FROM `user` ';
dump("Test whether the sql statement is wrong");
$res = Db::query($sql);

var_dump($res);

2 , error message

could not find driver



##}

古月胡!
古月胡!

reply all (1)
angryTom

There is no database driver. Are you sure your database link is correct?

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!