( ! ) Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in C://wamp/www/ecommerce/functions/functions.php on line 41
and my code is:
<?php $ip = getIp(); $pro_id = $_GET['add_cart']; $check_pro = "SELECT * FROM cart WHERE ip_add='$ip' AND p_id='$pro_id'"; $run_check = mysqli_query($con, $check_pro); if(mysqli_num_rows($run_check)==0){ echo ""; } ?>
please help.
Question and answer is powered by AnsPress.io