Chci docílit: vypisat data s mysql tabulky na koniec kazdeho zaznamu pridat policko input s numerickou hodnotou aby v nom bolo mozne menit udaje a nasledne vsetko odoslat do inej tabulky.
Kusal som nieco take no neviem to odoslat do tabulky
KOd:
</div>
<!-- End Left Column -->
<!-- Begin Right Column -->
<div id="rightcolumn"> ...
<form method="POST">
<label>Editovať údaje :
<input type="submit" name="save" value="save">
</label>
<?php
$con=mysqli_connect("localhost","root","","mat_szm");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
mysqli_query($con, "SET NAMES 'utf8'");
$result = mysqli_query($con,"SELECT * FROM material");
echo " <table border='1' align='center'>
<tr>
<th>Kod_CPV :</th>
<th>Názov :</th>
<th>Množstvo :</th>
</tr>" ;
while($row = mysqli_fetch_array($result))
{
$id = $row['ID'];
echo "<tr>";
echo "<td bgcolor=#CCCCCC> <b>". $row['Kod_CPV'] ."</b> </td>";
echo "<td>" . $row['Nazov'] . "</td>";
echo "<td>" . '<input type="number" name="s"[ ] value="0">' . "</td>";
echo "</tr>";
}
echo "</table></div>";
mysqli_close($con);
?>
</form>
</div>