How can you run a mysqli query with CodeIgniter?

前端 未结 3 2022
故里飘歌
故里飘歌 2021-01-22 12:11

Does anyone have a clue how to run a mysqli query with CI. I did change the db driver in the config file, but I\'m still unable to use multiple queries like

$sql         


        
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-22 12:48

    You cannot use CI's Active Records at this time, but you can use mysqli functions with the connection / mysqli instance that CI created. Set your CodeIgniter database driver to mysqli, then call mysqli functions like mysqli_multi_query($this->db->conn_id...

提交回复
热议问题