Your IP : 3.148.145.219
<?php
session_start();
include("lib/connect.inc.php");
//$covis->getStageTeamx();
$sql = $db->query("SELECT * FROM user WHERE done=0 ORDER BY sn DESC LIMIT 800 ");
while($r = mysqli_fetch_assoc($sql)){ $sn = $r['sn']; $x = $covis->team1($sn);
$db->query("UPDATE user SET team1='$x',done=1 WHERE sn='$sn' ");
}
// $sql = $db->query("SELECT * FROM user WHERE level>7 ");
// $x=0;
// while($r = mysqli_fetch_assoc($sql)){ $x += $r['team']; $sn=$r['sn'];
// $wa = 487.5-$r['team']*50-4.5;
// $db->query("UPDATE user SET wallet='$wa' WHERE sn='$sn' ");
// }
// echo $x;