[eluser]Unknown[/eluser]
Hi,
Here is my codes:
$this->db->_compile_select();
$this->db->select('destination,price_inc_vat,country,network,short_code,flag');
$this->db->where('country', $this->db->escape_str($data['dest']));
$this->db->order_by("network", "asc");
$query = $this->db->get('pricing');
echo $this->db->last_query();
The CI generated SQL is:
SELECT `destination`, `price_inc_vat`, `country`, `network`, `short_code`, `flag` FROM (`pricing`) WHERE `country` = 'Grenada (incl Carriacou)' ORDER BY `network` asc
While I run the exactly same SQL in PHPMyAdmin, it returns 2 matches. But none in CI.
Thanks in advance!