INEEDHELP101 Posted July 14, 2018 Share Posted July 14, 2018 need help about this one.. line 14.. the error is on the title.. thank you Quote Link to comment https://forums.phpfreaks.com/topic/307501-count-parameter-must-be-an-array-or-an-object-that-implements-countable-in-cxampphtdocsadminweboriginphp-on-line-14/ Share on other sites More sharing options...
requinix Posted July 14, 2018 Share Posted July 14, 2018 mysqli_query() does not return all the rows from the query. You need mysqli_num_rows. Quote Link to comment https://forums.phpfreaks.com/topic/307501-count-parameter-must-be-an-array-or-an-object-that-implements-countable-in-cxampphtdocsadminweboriginphp-on-line-14/#findComment-1559679 Share on other sites More sharing options...
INEEDHELP101 Posted July 14, 2018 Author Share Posted July 14, 2018 I tried it.. It turns out to be an error. Quote Link to comment https://forums.phpfreaks.com/topic/307501-count-parameter-must-be-an-array-or-an-object-that-implements-countable-in-cxampphtdocsadminweboriginphp-on-line-14/#findComment-1559685 Share on other sites More sharing options...
ginerjm Posted July 14, 2018 Share Posted July 14, 2018 Care to show us how you "tried it"? Quote Link to comment https://forums.phpfreaks.com/topic/307501-count-parameter-must-be-an-array-or-an-object-that-implements-countable-in-cxampphtdocsadminweboriginphp-on-line-14/#findComment-1559688 Share on other sites More sharing options...
INEEDHELP101 Posted July 15, 2018 Author Share Posted July 15, 2018 Quote Link to comment https://forums.phpfreaks.com/topic/307501-count-parameter-must-be-an-array-or-an-object-that-implements-countable-in-cxampphtdocsadminweboriginphp-on-line-14/#findComment-1559694 Share on other sites More sharing options...
requinix Posted July 15, 2018 Share Posted July 15, 2018 Look at my post, click the link to the documentation for mysqli_num_rows, see how it's supposed to be used, and fix your code accordingly. Quote Link to comment https://forums.phpfreaks.com/topic/307501-count-parameter-must-be-an-array-or-an-object-that-implements-countable-in-cxampphtdocsadminweboriginphp-on-line-14/#findComment-1559695 Share on other sites More sharing options...
ginerjm Posted July 15, 2018 Share Posted July 15, 2018 OMG! Does anybody EVER read a manual/reference/book/tutorial before embarking on writing code anymore??? OP - If you had taken 5 minutes to look at the manual and do a search on the function in question here you would not only have learned something but have seen a perfectly good usage of said function and NOT be posting here for more help on this particular error. We try to help out those who help themselves so please try to hold up your end of the bargain. (Please forgive my rant but I had to vent a little.) 1 Quote Link to comment https://forums.phpfreaks.com/topic/307501-count-parameter-must-be-an-array-or-an-object-that-implements-countable-in-cxampphtdocsadminweboriginphp-on-line-14/#findComment-1559702 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.