Welcome Guest, Not a member yet? Register   Sign In
DB Where function doesn't resets after running query
#7

[eluser]OwanH[/eluser]
OK this may seem like a crazy suggestion but try replacing but try replacing these two lines:

Code:
$this->db->where('id', $id);
$query = $this->db->get($this->tables['media']);

with this line:

Code:
$query = $this->db->getwhere($this->tables['media'], array('id' => $id));

To be honest I actually don't see anything wrong with your code, and I don't think you should be getting the problem you are getting, especially since you have not enabled CI's query caching, but hey you could give this a try and see if it helps Smile.


Messages In This Thread
DB Where function doesn't resets after running query - by El Forum - 07-09-2007, 09:24 AM
DB Where function doesn't resets after running query - by El Forum - 07-10-2007, 01:18 AM
DB Where function doesn't resets after running query - by El Forum - 07-10-2007, 02:04 AM
DB Where function doesn't resets after running query - by El Forum - 07-10-2007, 09:21 AM
DB Where function doesn't resets after running query - by El Forum - 07-10-2007, 11:33 AM
DB Where function doesn't resets after running query - by El Forum - 07-11-2007, 01:34 AM
DB Where function doesn't resets after running query - by El Forum - 07-11-2007, 08:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB