Please help, working on school assignment but I am not very good with php
I keep getting this error with the following code:
An error occurred in script ‘/storage/ssd4/544/8111544/public_html/wishlist.php’ on line 80:
mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given
Array
// Get the wish list contents:
$r = mysqli_query($dbc, “CALL get_wish_list_contents(’$uid’)”);
if (mysqli_num_rows($r) > 0) { // Products to show!
include (’./views/wishlist.html’);
} else { // Empty cart!
include (’./views/emptylist.html’);
}