aba Posted October 12, 2013 Share Posted October 12, 2013 Please can some1 help me solve these errors: 1. Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in C:\wamp\www\phpmyql3_scripts\ch15\html\includes\header.html on line 47 2. Warning: mysqli_free_result() expects parameter 1 to be mysqli_result, boolean given in C:\wamp\www\phpmyql3_scripts\ch15\html\includes\header.html on line 50 3. Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in C:\wamp\www\phpmyql3_scripts\ch15\html\includes\header.html on line 123 Link to comment Share on other sites More sharing options...
Antonio Conte Posted October 12, 2013 Share Posted October 12, 2013 You have an error in your SQL syntax. That's the problem. Link to comment Share on other sites More sharing options...
aba Posted October 12, 2013 Author Share Posted October 12, 2013 so how can I resolve it? pls help! Link to comment Share on other sites More sharing options...
Antonio Conte Posted October 12, 2013 Share Posted October 12, 2013 - Post your query here. We can't guess how it looks - Run it something like PHPMyAdmin and see where it fails. - Assign your query to A variable instead of directly inside mysqli_query() and use echo on it. Make sure variables (If any) inside your query assigns values as expected. 1 Link to comment Share on other sites More sharing options...
Recommended Posts