Welcome Guest, Not a member yet? Register   Sign In
i have a problem with $this->db->like
#3

[eluser]minhbu[/eluser]
$this->db->query("SELECT * FROM `news` WHERE `id_news` = '1' OR `id_news` LIKE '1,%'");
if i have a string id_news="11,3,57,6,7,12,1"
i think i try use "select * from news where 1 in(id_news)"


Messages In This Thread
i have a problem with $this->db->like - by El Forum - 08-16-2009, 09:19 PM
i have a problem with $this->db->like - by El Forum - 08-16-2009, 09:24 PM
i have a problem with $this->db->like - by El Forum - 08-16-2009, 09:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB