artslave Posted November 7, 2014 Share Posted November 7, 2014 Hello Larry, On the coffee website, I got everything working and the database connection works, but when I click on the Wish LIst, add to cart or Cart button, I get the following error below. I wasn't sure if I have a setting wrong. I wasn't sure where to look at this point. Any direction would be helpful. Thank you in advance. In case you need to see the following location of my files and URL: // Determine location of files and the URL of the site: define ('BASE_URI', '/Applications/MAMP/htdocs/ecommerce/');define ('BASE_URL', 'http://localhost:8888/ecommerce/html/');define('MYSQL', BASE_URI . 'mysql.inc.php'); An error occurred in script '/Applications/MAMP/htdocs/ecommerce/html/wishlist.php' on line 80:mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given Array( [0] => Array ( [function] => my_error_handler [args] => Array ( [0] => 2 [1] => mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given [2] => /Applications/MAMP/htdocs/ecommerce/html/wishlist.php [3] => 80 [4] => Array Link to comment Share on other sites More sharing options...
Larry Posted November 7, 2014 Share Posted November 7, 2014 That normally means your query is failing to return any records. I'd start by testing the query to see if it gives records or an error. Link to comment Share on other sites More sharing options...
Recommended Posts