-
Notifications
You must be signed in to change notification settings - Fork 0
/
cr9.php
35 lines (33 loc) · 1019 Bytes
/
cr9.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<!doctype php manual "-//by the PHP Documentation Group//en">
<!doctype odbc manual "-//by microsoft corp.//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<link rel="stylesheet" href="shablon.css" type="text/css">
<?php
include("config/local.php");
$arr = get_defined_vars();
$i = mysql_connect ($mysql_host,$mysql_user,$mysql_password); $e=mysql_select_db ($mysql_db_name);
for ($yy=1;$yy<700;$yy++)
{
$query = 'SELECT * FROM field WHERE type=1 AND strut=0';
$e = mysql_query ($query,$i);
if ($e) $ui = mysql_fetch_row ($e);
$query = 'SELECT strut_number FROM dev_bit WHERE flat_number='.$ui[6];
$r = mysql_query ($query,$i);
if ($r) $uo = mysql_fetch_row ($r);
while ($uo)
{
if ($ui[9]!=)
$uo = mysql_fetch_row ($r);
}
$query = 'UPDATE field SET strut=\''.$uo[0].'\' WHERE id='.$ui[0];
echo $query.'<br>';
//$r = mysql_query ($query,$i);
}
?>
</td></tr>
</table>
</body>
</html>