It seems to me I have this coded right. For some reason I am getting an error. When I use mysqli_num_rows($result) I get the following error. I even tried mysqli_num_rows(mysqli_result, $result) and it gives me an error saying there should only be one parameter in the function call.
Here's my code.
if (mysqli_num_rows($result) > 0) {
It gives me the following error.
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/a47dode5oten/public_html/scripts/automation/check-joes-datacenter-stock.php on line 30