How can you run a mysqli query with CodeIgniter?

前端 未结 3 1962
故里飘歌
故里飘歌 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:41

    No need for additional libraries in CI if you want to change mysql to mysqli just go to the config->database.php and change to $db['default']['dbdriver'] = 'mysql'; to $db['default']['dbdriver'] = 'mysqli';

提交回复
热议问题