开发者

Parse error in codeigniter query.? [closed]

开发者 https://www.devze.com 2023-04-01 04:00 出处:网络
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time,or an extraordinarily narrow situation that is not generally applic
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 10 years ago.

i have in following code error, what is cause?

did is true following query?(how is true it?)

$this->db->order_by("id", "desc")->like('name', %$value_search%开发者_JAVA技巧)->get('ki_submits'); //line 15

error: Parse error: syntax error, unexpected '%' in D:\xampp\htdocs\application\models\model_name.php on line 15


$this->db->order_by("id", "desc")->like('name', "%$hotel_search%")->get('hotel_submits'); 
0

精彩评论

暂无评论...
验证码 换一张
取 消