Хз, не пашет, я год не кодил, чё не так?
<?php
include 'head.php';
auth();
$uid=$user['id'];
$opit=$user['shahtaLevel']*3;
$shahta=$user['shahta'];
if(isset($_GET['dig'])){
$mo=$db->query("UPDATE `users` SET `money`+='$shahta' WHERE `id`='$uid'");
header('Location: index.php');
}
echo 'Ник: '.$user['login'].' Монетки: '.$user['money'];
?>
<br><br>
FLOWAP (19.12.2018 в 23:14)
а вообще вот так вот лучше кек
$mo=$db->query("UPDATE `users` SET `money` = `money` + ? WHERE `id`= ?",array($shahta,$uid));