![]() |
Moving CI2 to CI3 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 2.x (https://forum.codeigniter.com/forumdisplay.php?fid=18) +--- Thread: Moving CI2 to CI3 (/showthread.php?tid=73186) |
Moving CI2 to CI3 - gmgj - 03-28-2019 https://www.phpclasses.org/blog/package/9199/post/3-Smoothly-Migrate-your-PHP-Code-using-the-Old-MySQL-extension-to-MySQLi.html#convert How to Convert MySQL to MySQLi The project above is a wrapper that allows you to use old php mysql code with the new cli driver Find the download, its 4 small files, I changed the name of mysql2i.class.php to mysql2i.class_helper.php and put it in \application\helpers\. Loaded it \application\config\autoload.php $autoload['helper'] = array('gj','mysql2i.class'); and it did a nice job of allowing me to use my old php mysql code \application\config\database.php $db['default'] = array( 'dsn' => '', 'hostname' => 'localhost', 'username' => 'zCIDBclouda', .. 'dbdriver' => 'mysqli', |