Welcome Guest, Not a member yet? Register   Sign In
Need help with active record
#1

[eluser]profsoni[/eluser]
Hi,

i have this code in model:
Code:
$query=$this->db->like($field,'Insert%')
                ->get($table);

Basically, i was trying to get data that contains the word 'Insert'. But this doesn't work and num_rows always return 0.

i've run the query in database directly and it's return values.

i'm using sql server as database and sqlsrv driver.

Can anyone tell me what's wrong with this?

Thanks in advance.


Messages In This Thread
Need help with active record - by El Forum - 04-13-2012, 08:12 PM
Need help with active record - by El Forum - 04-13-2012, 09:02 PM
Need help with active record - by El Forum - 04-13-2012, 09:07 PM
Need help with active record - by El Forum - 04-13-2012, 09:49 PM
Need help with active record - by El Forum - 04-13-2012, 10:02 PM
Need help with active record - by El Forum - 04-13-2012, 10:25 PM
Need help with active record - by El Forum - 04-13-2012, 10:29 PM
Need help with active record - by El Forum - 04-13-2012, 11:44 PM
Need help with active record - by El Forum - 04-14-2012, 05:32 AM
Need help with active record - by El Forum - 04-15-2012, 10:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB