Welcome Guest, Not a member yet? Register   Sign In
or_Like Question
#6

[eluser]toopay[/eluser]
I'm affraid, that you must write the query in a string, because ActiveRecord in CodeIgniter not supporting sub-query (yet). I suspect, you must be need query like...
Code:
$sql = "SELECT * FROM (customer) "
       ."WHERE bb_id = '".$bb_id."' "
       ."AND (fname LIKE '%".$new."%' "
       ."OR lname LIKE '%".$new."%' "
       ."OR email LIKE '%".$new."%') "


Messages In This Thread
or_Like Question - by El Forum - 04-16-2011, 06:51 AM
or_Like Question - by El Forum - 04-16-2011, 08:03 AM
or_Like Question - by El Forum - 04-16-2011, 08:11 AM
or_Like Question - by El Forum - 04-16-2011, 08:18 AM
or_Like Question - by El Forum - 04-16-2011, 08:22 AM
or_Like Question - by El Forum - 04-16-2011, 09:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB