Просмотр поста

.
BoGdAn
I'm the Cult of Personality...

kep4max, попробуй так
if (!empty($_SESSION['uid']) && $datauser[bonustime_real]+3*3600 < time() )
{
echo '<a href="bonus.php?id='.$use_id.'"><img src="img/bonus_big.png" alt="бонус!"/></a>
';
mysql_query("UPDATE `users` SET `bonustime_real`='time()' WHERE `id` = '$user_id' LIMIT 1");
}