Код
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r" />
<title>ТЕСТ</title>
</head>
<body>
<?php
$base="base";
$name="user";
$password="password";
$conn=odbc_connect($base,$name,$password) or die(odbc_errormsg());
$sql=odbc_exec($conn, "select id, kodpl from iodvdb.oobdan where id in(1476799501, 1476799502)") or die(odbc_errormsg());
$row=odbc_fetch_array($sql);
do
{
echo $row['ID'];
echo $row['KODPL'];
}
while ($row=odbc_fetch_array($sql));
odbc_close($conn);
?>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r" />
<title>ТЕСТ</title>
</head>
<body>
<?php
$base="base";
$name="user";
$password="password";
$conn=odbc_connect($base,$name,$password) or die(odbc_errormsg());
$sql=odbc_exec($conn, "select id, kodpl from iodvdb.oobdan where id in(1476799501, 1476799502)") or die(odbc_errormsg());
$row=odbc_fetch_array($sql);
do
{
echo $row['ID'];
echo $row['KODPL'];
}
while ($row=odbc_fetch_array($sql));
odbc_close($conn);
?>
</body>
</html>