if ($result = $link->query("SELECT clicks FROM users WHERE id =", $_SESSION['user_id'])) {
$row = $result->fetch_all();
foreach ($row as &$value){
echo var_dump($value);
$balance = $value;
global $balance;
}
$result->close();
}