How to refer to database connection in codeigniter?
codeigniter, mysql, php
Solution
You can call any mysql native function and access mysql connection id.
See CodeIgniter User Guide
Problem
How can I call manually a PHP database function on CodeIgniter's database handler object? How to retrieve the connection (`$dbc`), or call a function like `mysql_real_escape_string($dbc, $variable)`?