Ver Mensaje Individual
  #4 (permalink)  
Antiguo 29/12/2017, 06:51
Avatar de xfxstudios
xfxstudios
 
Fecha de Ingreso: junio-2015
Ubicación: Valencia - Venezuela
Mensajes: 2.448
Antigüedad: 8 años, 9 meses
Puntos: 263
Respuesta: llenar campos de texto

Prueba así

Código PHP:
Ver original
  1. $db = new MySQLi('host', 'usuario', 'clave', 'base');
  2.         if($db->connect_error) {
  3.             die('Error de conexion ('.$db->connect_errno.')'
  4.                 .$db->connect_errno);
  5.         };
  6. $valor = $_POST['nresol'];
  7. $registro=$db->query("select * from prestad where N_Resol = '$valor'");
  8. $cant = mysqli_num_rows($registro);
  9.  
  10. if($cant>=1){
  11.     $reg = $registro->fetch_array()) {
  12. //RESTO DE TU CODIGO
__________________
[email protected]
HITCEL