0
I want to save in a variable the highest value ever obtained by rowCount
I just don’t know how to make the logic.
Current consultation:
$playeronline = $pdoG->prepare("SELECT login FROM u_hero WHERE login = 1");
$playeronline->execute();
$numeroonline = $playeronline->rowCount();
return $numeroonline;
I can’t understand what you want to do.
– Woss
rowCount counts how many lines the query has right? then I want to save the largest amount ever consulted and only update if rowCount gets a larger amount.
– Everton Figueiredo
In other words, you want to keep registered the largest number of online players the site has ever had?
– Woss
That’s right, I want to make like a play record.
– Everton Figueiredo
@Evertonfigueiredo The answer solved your question? Do you think you can accept it? See [tour] if you don’t know how you do it. This would help a lot to indicate that the solution was useful to you. You can also vote on any question or answer you find useful on the entire site.
– Maniero