I need this function they could help me. From already thank you very much. This is my code:
include('conexion.php');
include('bloquedeseguridad.php');
$query="SELECT identificacion as cedula, id as id , nombre as nombre, telone as telefono, teltwo as daviplata, calificacion as grupo FROM 'vw_usupreaprobados' ORDER BY 'vw_usupreaprobados'.id ASC";
$datos= null;
$datos = mysql_query($query);
?>
<div class="dropdown">
<button onclick="myFunction()" class="dropbtn">MENU</button>
<div id="myDropdown" class="dropdown-content">
<a href="administrarcreditos.php">Administrar creditos</a>
<a href="enviarPrimerMensaje.php">Enviar mensaje</a>
</div>
</div>
<button type="button" id="button"><a href="salir.php">Salir</a></button>
<p style="text-align: center;">Enviar Mensaje</p>
<button type="button" id="button">>Seleccionar todo</button>
<br><br>
<center>
<hr>
<?php if ($datos) { ?>
<table>
<tr>
<th> </th>
<th>Cédula</th>
<th>Nombre</th>
<th>Telefeno</th>
<th>Telefono Daviplata</th>
<th>Grupo</th>
<th></th>
</tr>
<?php while ($registro=mysql_fetch_assoc($datos)) {?>
<tr>
<td><?php echo $registro['id'];?></td>
<td><?php echo $registro['cedula']; ?></td>
<td><?php echo $registro['nombre']; ?></td>
<td><?php echo $registro['telefono']; ?></td>
<td><?php echo $registro['daviplata']; ?></td>
<td><?php echo $registro['grupo']; ?></td>
<td>
<input type="checkbox" onchange="actualizar(this.id)" value="first_checkbox" id="<?php echo $registro['id'] ?>"><br>
</td>
</tr>
<?php }?>
</table>
<?php } else{?>
<p> No hay información </p>
<?php } ?>
<hr>
</center>
<input type="button" id="boton" value="Enviar" onclick="enviarMensaje()">