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 25
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in /Applications/MAMP/htdocs/sonostarlet/Travel/includes/header.html on line 31
Warning: 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?
Chapter 17 Error
in PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (4th Edition)
Posted
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 25
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in /Applications/MAMP/htdocs/sonostarlet/Travel/includes/header.html on line 31
Warning: 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?