我收到此錯誤消息「未定義偏移量:0」。是什麼原因以及如何解決? 這裏是我的代碼:php mysql錯誤未定義偏移量:0
<?php
$rows= mysqli_query ($con,"SELECT COUNT(Mobile) AS count FROM data Where Blood = '$bloodGroup'");
$count = mysqli_fetch_assoc($rows ) ;
$count = $count[0]['count'];
?>
'$ count = $ count ['count']' –
瞭解有關準備好的語句以防止SQL注入 – Jens