Ver Mensaje Individual
  #20 (permalink)  
Antiguo 15/07/2015, 16:37
Avatar de xfxstudios
xfxstudios
 
Fecha de Ingreso: junio-2015
Ubicación: Valencia - Venezuela
Mensajes: 2.448
Antigüedad: 8 años, 10 meses
Puntos: 263
Respuesta: Borrar registro

lo estas haciendo mal, asi es que te tien que quedar:
Código PHP:
Ver original
  1. <?php
  2. $carga = $_GET['id'];
  3.  
  4. $mysqli = new MySQLi('localhost', 'root', '', 'AppSastre');
  5. $result = $mysqli->query("SELECT * FROM pedidos WHERE id = '$carga'");
  6. $row_result = $result->fetch_assoc();
  7. $totalRows_result = mysqli_num_rows($result);
  8.  
  9. ?>
  10. <html>
  11. <head>
  12. <title>Modificar registro</title>
  13. </head>
  14. <body>
  15. <form action="guardarcambios.php" method="post">¢
  16.     <input type="text" name="cliente" value="<?php echo $row_result['cliente']; ?>"/>
  17.     <br>
  18.     <br>
  19.     <input type="text" name="prenda" value="<?php echo $row_result['prenda']; ?>"/>
  20.     <br>
  21.     <br>
  22.     <input type="text" name="precio" value="<?php echo $row_result['preco']; ?>"/>
  23.     <br>
  24.     <br>
  25.     <input type="submit" value="Actualizar"/>
  26.     </form>
  27. </body>
  28. </html>