104
<th> Артикул </th>
<th> Упаковка </th>
<th> Кол-во </th>
</tr>\n";
$res12=mysql_query("SELECT distinct idproperem FROM perem where
sklad1=$sklad1maso");
while($res13=mysql_fetch_row($res12))
{
$res14=$res13[0];
$res18=mysql_query("SELECT nameg,`nameprod`,`art`,`edizmpr`,
sum(kolvoprodperem) FROM `prod`, perem, gild where sklad1=$sklad1maso
and sklad2=idgild and idproperem=$res14 and idproperem=idprod");
while($res19=mysql_fetch_row($res18))
{
echo " <center> <tr>
<td width='200' class='tz'> $res19[0] </td>
<td width='100' class='tz'> $res19[1] </td>
<td width='100' class='tz'> $res19[2] </td>
<td width='100' class='tz'> $res19[3] </td>
<td width='100' class='tz'> $res19[4] </td>
</tr> ";
}
}
echo "</table>\n";
}
?>
</div>
</div>