Welcome Guest, Not a member yet? Register   Sign In
$this->conn_id BOOLEAN(FALSE) instead of mysqli link
#1

[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-gui...ction.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?


Messages In This Thread
$this->conn_id BOOLEAN(FALSE) instead of mysqli link - by El Forum - 02-17-2012, 09:07 AM
$this->conn_id BOOLEAN(FALSE) instead of mysqli link - by El Forum - 02-17-2012, 02:45 PM
$this->conn_id BOOLEAN(FALSE) instead of mysqli link - by El Forum - 02-17-2012, 03:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB