prepare($sql); $sth->execute([ ":company_id" => $company_id, ":product_sku" => $data["product_sku"] ?? '', ":keyword" => '%'.$data["keyword"].'%' ]); db_check($sth, $answer); $answer["result"] = $sth->fetchAll(PDO::FETCH_ASSOC); $answer["success"] = 1; exit(json_encode($answer)); ?>