Perdon amigo te malde mal el error
Parse error: syntax error, unexpected
'?> ' in C:\wamp64\www\alterna\actual\pagina2.php on line 17
Código PHP:
<head>
<title>Modificación</title>
</head>
<body>
<?php
$db = new MySQLi('localhost', 'root', '', 'tural');
if($db->connect_error) {
die('Error de conexion ('.$db->connect_errno.')'
.$db->connect_errno);
};
$valor = $_POST['nresol'];
$registro=$db->query("select * from prestad where N_Resol = '$valor'");
$cant = mysqli_num_rows($registro);
if($cant>=1) {
$reg = $registro->fetch_array() {
?>
<form method="post" action="pagina3.php">
Nombre y Apellido:
<input type="text" name="Nyap" size="50" value="<?php echo $reg['Nyap']; ?>"/>
<br>
Codigo de Actividad:
<input type="text" name="Cod_act" size="50" value="<?php echo $reg['Cod_act']; ?>"/>
<br>
Codigo de Area:
<input type="text" name="Cod_area" size="50" value="<?php echo $reg['Cod_area']; ?>"/>
<br>
Nombre de Fant:
<input type="text" name="Nombre_fant" size="50" value="<?php echo $reg['Nombre_fant']; ?>"/>
<br>
Telefono:
<input type="text" name="Telefono" size="10" value="<?php echo $reg['Telefono']; ?>"/>
<br>
Mail:
<input type="text" name="Mail" size="50" value="<?php echo $reg['Mail']; ?>"/>
<br>
<input type="hidden" name="nresol" value="<?php echo $reg['N_Resol']; ?>"/>
<br>
<input type="submit" value="Confirmar">
</form>
<?php
}
else
echo 'No existe este prestador';
$mysql->close();
?>
</body>