Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I Use MySQLi and PHP5 Syntax Within CodeIgniter?

Im starting a new web project, and I figured I'd try using a framework. I know CodeIgniter is coded in PHP4, but will I be able to use the MySQLi functions of MySQL, as well as PHP5 syntax (when it comes to OO especially) while coding with CodeIgniter? Should I use Kohana instead?


1 Answers

Yes. You can use whatever features in the version of PHP that you are running. Codeigniter runs fine on PHP5.

Also, Codeigniter includes a database driver for mysqli which can be set in system/application/config/database.php as:

$db['default']['dbdriver'] = "mysqli";
like image 137
Matthew Rapati Avatar answered Feb 07 '26 17:02

Matthew Rapati



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!