• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Moving CI2 to CI3

#1
https://www.phpclasses.org/blog/package/...ml#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',
I wrote my first program in 15 minutes. It took me 3 hours to keypunch it.

I wrote my first BASH script in 5 minutes. It took me a day to find out I had to put a . (period) in front of it to get it to execute.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.