$d = 1; while($d <= 5){ mysql_query("UPDATE user SET lvl='".($ololous['lvl']+1)."' WHERE id='".$_SESSION['id']."'"); $d++; }