phppup Posted May 19, 2019 Share Posted May 19, 2019 I think this code was working before I updated MySQLi coding. Now I am receiving an error: Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in.... I haven't gone through all my code, but are there any obvious symptoms to note from the following segment: if (mysqli_num_rows($result) > 0) { while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { //do this } } All else style to be functioning as specified. Thanks Quote Link to comment Share on other sites More sharing options...
Barand Posted May 19, 2019 Share Posted May 19, 2019 Your query didn't work. Quote Link to comment Share on other sites More sharing options...
ginerjm Posted May 19, 2019 Share Posted May 19, 2019 You either have resolved this yourself or you could get more help if you posted your query statement and the lines leading up to the problem line. Quote Link to comment Share on other sites More sharing options...
phppup Posted May 19, 2019 Author Share Posted May 19, 2019 (edited) Don't have access to full code at the moment, but if I recall, the query was written once at the top of the code when only Mysql. Does it need to be repeated ahead of this statement with up-to-date MYSQLi? It did work for the other statement without error. Edited May 19, 2019 by phppup Quote Link to comment Share on other sites More sharing options...
ginerjm Posted May 20, 2019 Share Posted May 20, 2019 So - you didn't write this code and you want us to fix it sight-unseen? Try another forum perhaps. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.