codeigniter - Codeignitor Manual Database Connection -


i doing php in codeignitor framework.always codeignitor support default persistent connections.i dont want use connection.i need connect manually.is possible in codeignitor?if know please me go forward.i need little bit explanation please.

if want not persistent connection, set config file.

$config['hostname'] = "localhost"; $config['username'] = "myusername"; $config['password'] = "mypassword"; $config['database'] = "mydatabase"; $config['dbdriver'] = "mysql"; $config['dbprefix'] = "";  $config['pconnect'] = false;  $config['db_debug'] = true; $config['cache_on'] = false; $config['cachedir'] = ""; $config['char_set'] = "utf8"; $config['dbcollat'] = "utf8_general_ci";  $this->load->database($config); 


can read more in http://codeigniter.com/user_guide/database/connecting.html


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -