<? include_once '../sys/inc/start.php'; include_once '../sys/inc/compress.php'; include_once '../sys/inc/sess.php'; include_once '../sys/inc/home.php'; include_once '../sys/inc/settings.php'; include_once '../sys/inc/db_connect.php'; include_once '../sys/inc/ipua.php'; include_once '../sys/inc/fnc.php'; include_once '../sys/inc/user.php'; $query = mysql_query("SELECT `id_user`, `eda` FROM `tamag`"); while ($row = mysql_fetch_assoc($query)) { mysql_query("UPDATE `tamag` SET `eda` = `eda` - '1' WHERE `id_user` = '".$row['id_user']."'"); }