有一个请求
$query ="SELECT AVG(Price) FROM `products` WHERE Manufacturer=2";
$result = mysqli_query($link, $query) or die("Ошибка " . mysqli_error($link));
while ($myrow = mysqli_fetch_array($result)){
echo $myrow['Price'] . "<br>\n"; // line 15
}
您需要显示给定制造商的产品的平均价格
出于某种原因,我得到一个错误
注意:未定义索引:价格在 C:\Users\Vit\PhpstormProjects\untitled\index.php 第 15 行