$this->conn_id BOOLEAN(FALSE) instead of mysqli link - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: $this->conn_id BOOLEAN(FALSE) instead of mysqli link (/showthread.php?tid=49381) |
$this->conn_id BOOLEAN(FALSE) instead of mysqli link - El Forum - 02-17-2012 [eluser]Krzysiaczek[/eluser] Hi I was trying to find a way to use mysqli_multi_query and was playing with the DB call_function passing multi_query as a method to call http://ellislab.com/codeigniter/user-guide/database/call_function.html it has showed up that it requires link to the database so that's why I've tried to use $this->conn_id which unfortunately always returned FALSE. I've checked the other site where everything was fine. After analysing the differences I found that on the "good" site there was database session enabled. After enabling this on the "bad" site - in the config (and creating cs_session table) $this->conn_id started to work as it supposed to do. Another weird thing for me is that this ci_session table is checked, required and used even if didn't declared to use session anywhere on that bad site, as I'm aware. Any feedback welcome, also related to multiquery functionality. I found a few posts in the forum but not sure if there is any good extension/library worth using? $this->conn_id BOOLEAN(FALSE) instead of mysqli link - El Forum - 02-17-2012 [eluser]Krzysiaczek[/eluser] Actually I've found somewhere in my old test methods the line loading session library which explains why ci_session table was instantly checked. Still I can't make $this->conn_id work after disabling one or the other - using the database for session or loading the session from that hidden line. I'm using CI version 2.1.0 $this->conn_id BOOLEAN(FALSE) instead of mysqli link - El Forum - 02-17-2012 [eluser]Krzysiaczek[/eluser] RESOLVED: in my case there was autoinit option disabled that's why conn_id was FALSE |