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

[eluser]profsoni[/eluser]
This is the code :
Code:
$query=$this->db->like('Username','Son')
                ->get('UserTable');

I also have try this :

This Works :
Code:
$query=$this->db->query("select * from UserTable where Username like '%Son%'");

This doesn't :
Code:
$query=$this->db->query("select * from UserTable where Username like '%Insert%'");

In the Sql Server there is Username 'InsertSoni'.

I'm using Sql server 2005, btw and sqlsrv driver.

Thanks


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