0

Why am i getting this error:

Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given in /Users/Joli/Sites/TestSite/index.php on line 47

$conn = mysqli_connect("localhost","sql","password","db") or die("Query died: Connect");
$checkSql="select count(id) as eCount from address";
$result = mysqli_query($conn,$checkSql);
$row = mysqli_fetch_assoc($result);
if($row['eCount'] == 6){
$disable = 1;
}
2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by ShawnCplus
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.