jis Posted June 25, 2014 Share Posted June 25, 2014 Hi, I've been trying to display my table using the index php file, however when it is run mylocal host displays the page as : Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /Applications/MAMP/htdocs/sonostarlet/Travel/includes/header.html on line 25Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in /Applications/MAMP/htdocs/sonostarlet/Travel/includes/header.html on line 31Warning: mysqli_free_result() expects parameter 1 to be mysqli_result, boolean given in /Applications/MAMP/htdocs/sonostarlet/Travel/includes/header.html on line 33 Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /Applications/MAMP/htdocs/sonostarlet/Travel/includes/header.html on line 80 Warning: mysqli_free_result() expects parameter 1 to be mysqli_result, boolean given in /Applications/MAMP/htdocs/sonostarlet/Travel/includes/header.html on line 85 I think this relates to the header file. Can you tell me what is the problem or if I need to post more files in order to get a reply? Link to comment Share on other sites More sharing options...
HartleySan Posted June 25, 2014 Share Posted June 25, 2014 Very likely, those errors are a result of your query being invalid. Try running the query directly on your DB to debug it. Link to comment Share on other sites More sharing options...
Recommended Posts