0
基本上,这是我想要做的,它是如何工作的?如何获得CodeIgniter的MySQL查询的URL ID
public function get_product_category(){
$id = $this->uri->segment(3);
$query = $this->db->query('SELECT * FROM products where category_id = $id ');
return $query->row();
}