Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • @tereško so in my case it would be $rows = count(array(0)); ? Commented Jun 10, 2012 at 11:17
  • please, go and learn php, instead of blindly copy-pasting code Commented Jun 10, 2012 at 11:20
  • In my learning books there is always mysql_* commands :( so I am trying to learn PDO and system of it on my own :) and I already know that count returns big number from the answe so i dont get it why you posted it here :) Commented Jun 10, 2012 at 11:27
  • 2
    @Byakugan: If you see somthing is in error, try to locate the error. Not just broadly asking. I can understand however, if you change to something new, that it is harder to locate the point of error. But nevertheless, try to find "the one point" how the error happens with debugging, like using var_dump($results_login); and such. Commented Jun 10, 2012 at 12:13
  • OK thnk you will do :) I just thought it could happen to other people and could be usefull to somebody in future :) Commented Jun 10, 2012 at 12:38