public static function searchSoz($slovo)
{
$db = Db::getConnection();
$sql = "SELECT * FROM product WHERE name LIKE '%$slovo%' ";
$i = 0;
$vseslova = array();
while ($row = $sql->fetch()) {
$vseslova[$i]['id'] = $row['id'];
$vseslova[$i]['name'] = $row['name'];
$i++;
}
return $vseslova;
}