this part of the code to update records but I get this error:
Fatal error: Uncaught Error: Call to undefined function mysql_fetch_array () in C: \ xampp \ htdocs \ Handywoman \Truji \ ModifyProcess.php: 17 Stack trace: # 0 {main} thrown in C: \ xampp \ htdocs \ Aero assistance \ Trek application \ modifyProcess.php on line 17
I do not know how to solve it
Obviously I already have the form but it does not update me.
<html>
<head>
<title>Datos a actualizar.</title>
<META name='robot' content='noindex, nofollow'>
</head>
<?php
$id = $_POST['id'];
$conexion = mysqli_connect("localhost", "root","admin123","database");
$query = "SELECT FROM usuario WHERE id = '".$id."'";
$result = mysqli_query($conexion,$query);
while ($registro = mysql_fetch_array($result)){
echo "
<body>
<div align='center'>
<table border='0' width='600' style='font-family: Verdana; font-size: 8pt' id='table1'>
<tr>
<td colspan='2'><h3 align='center'>Actualice los datos que considere</h3></td>
</tr>
<tr>
<td colspan='2'>En los campos del formulario puede ver los valores actuales,
si no se cambian los valores se mantienen iguales.</td>
</tr>
<form method='POST' action='actualiza.php'>
<tr>
<td width='50%'> </td>
<td width='50%'> </td>
</tr>
<tr>
<td width='50%'><p align='center'><b>Cedula: </b></td>
<td width='50%'><p align='center'><input type='text' name='id_funcinario' size='20' value='".$registro['id_Funcionario']."'></td>
</tr>
<tr>
<td width='50%'><p align='center'><b>Primer Nombre :</b></td>
<td width='50%'><p align='center'><input type='text' name='primer_Nombre' size='20' value='".$registro['primer_Nombre']."'></td>
</tr>
<tr>
<td width='50%'><p align='center'><b>Segundo Nombre :</b></td>
<td width='50%'><p align='center'><input type='text' name='segundo_Nombre' size='20' value='".$registro['segundo_Nombre']."'></td>
</tr>
<tr>
<td width='50%'><p align='center'><b>Primer Apellido :</b></td>
<td width='50%'><p align='center'><input type='text' name='primer_Apellido' size='20' value='".$registro['primer_Apellido']."'></td>
</tr>
<tr>
<td width='50%'><p align='center'><b>Segundo Apellido :</b></td>
<td width='50%'><p align='center'><input type='text' name='segundo_Apellido' size='20' value='".$registro['segundo_Apellido']."'></td>
</tr>
<tr>
<td width='50%'><p align='center'><b>Cargo Funcionario :</b></td>
<td width='50%'><p align='center'><input type='text' name='cargo_Funcionario' size='20' value='".$registro['cargo_Funcionario']."'></td>
</tr>
<tr>
<td width='50%'><p align='center'><b>Telefono Funcionario :</b></td>
<td width='50%'><p align='center'><input type='text' name='telefono_Funcionario' size='20' value='".$registro['telefono_Funcionario']."'></td>
</tr>
<tr>
<td width='50%'><p align='center'><b>Edad Funcionario :</b></td>
<td width='50%'><p align='center'><input type='text' name='edad_Funcionario' size='20' value='".$registro['edad_Funcionario']."'></td>
</tr>
<tr>
<td width='50%'><p align='center'><b>Sexo Funcionario :</b></td>
<td width='50%'><p align='center'><input type='text' name='sexo_Funcionario' size='20' value='".$registro['sexo_Funcionario']."'></td>
</tr>
<tr>
<td width='50%'> </td>
<td width='50%'> </td>
</tr>
<input type='hidden' name='id' value='$id'>
<tr>
<td width='100%' colspan='2'>
<p align='center'>
<input type='submit' value='Actualizar datos' name='B1'></td>
</tr>
</form>
</table>
</div>
";
}
?>
</body>
</html>