public function Search_clients($client_str)
{
$sql = 'SELECT * WHERE FIND_IN_SET($client_str,desc)';
$condition = $this->query($sql);
}
写的sql语句不对
desc是数据表的字段名
$client_str是字段值
Beginner to learn PHP, please help me solve my doubts
Where is your watch name? . Also, you have to look at the tp manual for the query method.
For example:
$User = M("User"); // Instantiate the User object
$User->where('type=1 AND status=1')->select();