Quisiera saber se podría hacer esta función (tengo que hacerlo en la misma pagina ya que es un trabajo y no se como hacer esa parte) aquí les dejo mi código espero me puedan ayudar
<?php
include "conexion.php";
$sql = "SELECT Id_alumno, Nombre, Curso, Jornada
from alumnos";
$resul = $cone->query($sql);
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<table border=1 >
<thead>
<tr id='titulo'>
<th>Codigo</th>
<th>Alumno</th>
<th>Curso</th>
<th>Jornada</th>
<th>Comando</th>
</tr>
</thead>
<tbody>
<?php while ($row = $resul->fetch_assoc())
{?>
<tr>
<td><?php echo $row['Id_alumno']; ?></td>
<td><?php echo $row['Nombre']; ?></td>
<td><?php echo $row['Curso']; ?></td>
<td><?php echo $row['Jornada']; ?></td>
<td>Agregar</td>
</tr>
<?php }?>
</tbody>
</table>
<form>
<center>
<h1>Cuerpo</h1>
<label>Codigo</label>
<input type="text" name="codigo"><br><br>
<label>Nombre del Alumno</label>
<input type="text" name="nom"><br><br>
<label>Grado</label>
<input type="text" name="grad"><br><br>
<label>Jornada</label>
<input type="text" name="jor"><br><br>
</center>
</form>
</body>
</html>
Se que para ustedes esto es súper sencillo