Code: Select all
while ($land > 0)
{
if ($i > 24)
{
$i = 1;
}
$land = $land - 1;
mysql_query("UPDATE users SET eh$i=eh$i+1 WHERE username = '". $_SESSIONї'username'] . "'");
$i = $i + 1;
}eg
not: 2 1 1 1 1 1 1 1 1 ect
but: etc 1 1 1 1 1 1 1 1 2
Any help would be much apreciated, thanks!