Your IP : 216.73.216.48
<!DOCTYPE HTML>
<html lang="bg" prefix="og: http://ogp.me/ns#">
<head>
<title>Нова година</title>
</head>
<body>
<?php
include("../conn.php");
$tt=mysqli_query($db, "SELECT * FROM `students` ORDER BY `i` ASC");
while ($st=mysqli_fetch_row($tt))
{
$inmb=$st[0];
$k=$st[18];
print("".inmb.". ".$st[4]." ".$st[6]." от ".$k." в ");
$k+=100;
print("".$k."<br />");
$upd=mysqli_query($db, "UPDATE `students` SET `k` = '".$k."' WHERE `i` = '".$inmb."' LIMIT 1;");
}
print("Готово");
?>
</body>
</html>