Ver Mensaje Individual
  #20 (permalink)  
Antiguo 27/04/2017, 14:20
daviserraalonso
 
Fecha de Ingreso: diciembre-2015
Mensajes: 36
Antigüedad: 8 años, 5 meses
Puntos: 0
Respuesta: Problema con UPDATE con php y mysqli

Código:
<!DOCTYPE html>
<html lang="es"> 
	<head> 
		<meta charset="UTF-8" > 
		<title>Modificacion de Pacientes</title>
		<meta http-equiv="content-type" content="text/html; charset=utf8">
		<link rel="stylesheet" type="text/css" href="../css/estilo.css" />
	</head>
	<body>
	<center>
	<br/>	
		  <p>          
      <p>
      <table width="463" height="90" border="0">
              <tr>
                <td width="193" height="58">
                    <form action="modificacion.php" method="post" target="inferior">
                      <strong>Codigo del paciente:</strong>
                      <select name="idCliente" id="lista">
                        <?php
							include("conexion.php");
							$sql = "select * from pacientes";
							$result = $mysqli -> query($sql);
							  $i=0;
							while ($fila = $result -> fetch_row()){
								echo "<option value=".$fila[$i].">".$fila[$i]."</option>\n";
							}
						?>
                      </select>
                  
                </td>
                    <td width="246">
                        <input type="submit" name="modificar" value="Visualizar datos a modificar">
						</form>
                    </td>
                <td width="10"></td>
              </tr>
              <tr>
                <td>
                     <form action="pacientes.php" method="post" target="inferior">
                      <input type="submit" name="verPacientes" value="Ver Pacientes" />
                    </form>
                </td>
              </tr>
        </table>
	</center>
	</body>
</html>
este es el formulario