I'm just starting to use PHP and the forms issue, so I still have questions about how to use the functions.
HTML code
<legend>ELIMINAR</legend>
<table class="table table-striped" summary="Tabla generica">
<tr>
<td>Id</td>
<td>Nombre</td>
<td>Apellido</td>
<td>Edad</td>
<td>Eliminar</td>
</tr>
<?php
$sql = "SELECT * FROM 'progra9a'.'princesas';";
$resultado= mysqli_query($con,$sql);
while($row= mysqli_fetch_array($resultado)){
echo
'
<form action="../eliminar.php" method="get" enctype="multipart/form-data">
<tr>
<td>
<input type="hidden" name="princesid" value="'.$row[0].'">'.$row[0].'
</td>
<td><input type="text" name="princesanombre" value="'.$row[1].'"></td>
<td><input type="text" name="princesaapellido" value="'.$row[2].'"></td>
<td><input type="text" name="edad" value="'.$row[3].'"></td>
<td><button class="eliminar" data-id="'.$row[0].'">Eliminar</button></td>
</form>
</tr>
';
}
?>
</table>
<br />
<br />
<legend>MODIFICAR</legend>
<table class="table table-striped" summary="Tabla generica">
<tr>
<td>Id</td>
<td>Nombre</td>
<td>Apellido</td>
<td>Edad</td>
<td>Modificar</td>
</tr>
<?php
$sql = "SELECT * FROM 'progra9a'.'princesas';";
$resultado= mysqli_query($con,$sql);
while($row= mysqli_fetch_array($resultado)){
echo
'
<form action="../modificar.php" method="get" enctype="multipart/form-data">
<tr>
<td>
<input type="hidden" name="princesid" value="'.$row[0].'">'.$row[0].'
</td>
<td><input type="text" name="princesanombre" value="'.$row[1].'"></td>
<td><input type="text" name="princesaapellido" value="'.$row[2].'"></td>
<td><input type="text" name="edad" value="'.$row[3].'"></td>
<td><button class="modificar" data-id="'.$row[0].'">Modificar</button></td>
</form>
</tr>
';
}
?>
</table>
PHP code. Delete.
Modify