我有一个带双引号的字符串。即“这是文本”,当我只搜索这是文本时没有结果显示。我想搜索带引号和不带引号的字符串。那么查询是什么?
function template($val)
{
$Qry11=Database::Read("SELECT subcategory.*,C_Name,description FROM subcategory JOIN category ON subcategory.C_id=category.C_id JOIN product_description ON subcategory.S_id = product_description.S_id WHERE S_Name LIKE '%$val%' OR C_Name LIKE '%$val%' group by subcategory.S_id");
$List11 = Array();
$thisObjectName11 = get_class($this);
while($arr = Database::Reader($Qry11))
{
$data = new $thisObjectName11();
$data->temp_Id = $arr[S_id];
$data->C_Name = $arr[description];
$data->Nm = $arr[C_Name];
$data->S_Name = $arr[S_Name];
$List11[] = $data;
}
return $List11;
}