here is a form, when adding a new group of indicators, a new record is added to the table and displayed together with the "change" button. How can I change the record opposite this button WITHOUT WRITING a SPECIFIC NUMBER
HERE CODE:
`<!DOCTYPE html> <html> <head> <link rel="stylesheet" href=""> <title></title> </head> <body> <div><h1>ΠΠΎΠ±Π°Π²Π»Π΅Π½ΠΈΠ΅ Π½ΠΎΠ²ΠΎΠΉ Π³ΡΡΠΏΠΏΡ ΠΈΠ½Π΄ΠΈΠΊΠ°ΡΠΎΡΠΎΠ²</h1></div> <div class="SignUp"> <form action="indicator_group.php" method="POST" name="insert_indgroup"> <div class="container"> <input type="text" name="indicator_group_name" placeholder="ΠΠ²Π΅Π΄ΠΈΡΠ΅ ΠΈΠΌΡ Π½ΠΎΠ²ΠΎΠΉ Π³ΡΡΠΏΠΏΡ ΠΈΠ½Π΄ΠΈΠΊΠ°ΡΠΎΡΠΎΠ²"> </div></br> <div class="container"> <button class="SubmitStyle" name="Add">ΠΠΎΠ±Π°Π²ΠΈΡΡ/ΠΠΎΠΊΠ°Π·Π°ΡΡ</button> </div> </form> </div> <?php include_once("Connectdb.php"); if(isset($_POST['Add'])) { if($_POST['indicator_group_name']!='') { $Name_Group=($_POST['indicator_group_name']); mysql_query("INSERT INTO indicator_group (indicator_group_name) VALUES ('$Name_Group')"); } echo"<table border=1>"; $query="SELECT * FROM indicator_group";// SQL-Π·Π°ΠΏΡΠΎΡ $result=mysql_query($query); echo"<tr><th>ΠΠΌΡ Π³ΡΡΠΏΠΏΡ</th><th>Π Π΅Π΄Π°ΠΊΡΠΈΡΠΎΠ²Π°ΡΡ</th></tr>"; while($row = mysql_fetch_array($result)) { echo"<form><tr><td>".$row['indicator_group_name']."</td><td>"."<button type='submit' formaction='indicator_group_edit.php' formmethod='POST' name='indicator_group_edit_button' value=".$row['indicator_group_id'].">ΠΠ·ΠΌΠ΅Π½ΠΈΡΡ</button>"."</td></tr>"."</form>"; } echo "</table>"; mysql_close(); } ?> </body> </html>` Here I add the data to the table called "indicator_group" and immediately output the result of the addition. I go to the handler page "indicator_group_edit.php" and do not know how to add through another form as described above, I need to add an entry to the table without specifying the ID number. Please help if anyone knows how to do it.
