1
For example, in a browser game I want when the user clicks attack to return another user who has +- the same battle power as him.
$select = $mysqli->query("select * from data order by rand()");
That way it always returns me a random value, but what I want is a value between x and y... something like Rand($min, $max), but from what I saw, the order by rand
doesn’t work that way...
Someone give me a light on how to do this?
Great, thanks João! + 1
– Raizant