1
Good,
I created this little script to check from DB, add all Cords with that ID and then give an Alert with the total sum.
But... it’s not on, it just shows a record.
$exp_selector = "SELECT reward_qty FROM public_rewards WHERE client_id = '".$_SESSION['u_id']."'";
$exp_query = $con->query($exp_selector);
$reward_exp = rand(10,25);
while($exp_detail = $exp_query->fetch_array()) {
$percentages = $exp_detail['reward_qty'];
$sum_value += $percentages;
echo "<script>alert('$sum_value');</script>";
}
Why aren’t you adding up all of that client_id????