【发布时间】:2018-03-15 11:59:20
【问题描述】:
我有两个表,我想比较模型中的值,一个来自我的 product_category 表,另一个来自 product 表。
public function selectcategory($cat)
{
$this->db->where('product_cat',$cat);
$query = $this->db->get('product_category');
return $query;
}
$cat="Health Care";
Health%20Care 如何删除 %20 并比较这些值?
【问题讨论】:
-
https://stackoverflow.com/questions/14970212/prevent-white-space-in-query-being-converted-to-20的可能重复项
标签: php mysql codeigniter mysqli