Poprosil by som o pomoc. Nacitam tabulku s SQL a pridam policko input. Ako vsetky udaje dostat do inej tabulky. prikladam kod na vypis tabulky. Udaje odosielam skriptom send.php
Kod :
mysqli_query($con, "SET NAMES 'utf8'");
$result = mysqli_query($con,"SELECT * FROM 1_roztoky");
echo " <table border='1' align='center'>
<tr>
<th>Názov tovaru :</th>
<th>Popis položky :</th>
<th>Rozmer :</th>
<th>Počet ks v bal. :</th>
<th>Cena za ks :</th>
<th>Cena s DPH za ks :</th>
<th>Katalogové číslo :</th>
<th>Dodávateľ :</th>
<th>Obj. množstvo :</th>
</tr>" ;
while($row = mysqli_fetch_array($result))
{
$id = $row['ID'];
echo "<tr>";
echo "<td bgcolor=#CCCCCC> <b>". $row['Nazov_tovaru'] ."</b> </td> ";
echo "<td>" . $row['Popis_polozky'] . "</td>";
echo "<td>" . $row['Rozmer'] . "</td>";
echo "<td>" . $row['p_ks_bal'] . "</td>";
echo "<td>" . $row['cena_ks'] . "</td>";
echo "<td>" . $row['cena_s_DPH'] . "</td>";
echo "<td>" . $row['katalogove_cislo'] . "</td>";
echo "<td>" . $row['dodavatel'] . "</td>";
echo "<td>" .'<input type="number" name="s".[$id] value="0">' ."</td>";
echo "</tr>";
}
echo "</table></div>";
mysqli_close($con);
?>
Ako vystup dostanem nieco take :