sorry earlier if my english is bad
first i have a variable like this
$data[code] = "xyz123"; $data[type] = "train";
and the request that I write in the model, for example
$this->db->select('*'); $this->db->from('table1'); $this->db->join('table2', 'table2.id = table1.id'); $this->db->select('table3', 'table3.id = table1.id AND table1.code LIKE $data[code] AND table1.type LIKE $data[type]');
But when I try, its not working, and I think that the AND and LIKE syntax I am writing incorrectly. Does anyone know a solution?
Thank you before.
source share