sylvest Posted January 5, 2017 Posted January 5, 2017 (edited) Hi, I'm having trouble tracking down a bug in my PHP. The first attachment shows the error I'm getting (I would have pasted it in if the paste function worked, but it doesn't). The second attachment shows the code, with line numbers. I again I would have included this in the message, if I could have done without retyping it. My question is, why is it reporting that the error concerning the parameter of mysqli_num_rows() occurs in line 20? Line 20 is a comment. Even if it were not a comment, it does not contain a call to mysqli_num_rows(). I suppose it must be objecting to line 28, since that's where the call to the function is, but why is it not reporting the right line number? This just makes debugging extremely difficult... Thanks - Rowan Edited January 5, 2017 by sylvest Quote
sylvest Posted January 5, 2017 Author Posted January 5, 2017 Sorry, that last message was complete garbage. I was not running the PHP file that I thought I was, so no wonder the line numbers didn't work. Rowan Quote
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.