Ver Mensaje Individual
  #12 (permalink)  
Antiguo 15/07/2015, 10:19
diegoguerrero
 
Fecha de Ingreso: diciembre-2014
Ubicación: Madrid
Mensajes: 274
Antigüedad: 9 años, 5 meses
Puntos: 5
Respuesta: No entiendo el fallo

Código PHP:
Ver original
  1. <?php
  2. while ($row=$consulta->mysqli_fetch_array())
  3. {
  4. echo '<tr><td>'.$row["cliente"].'</td>';
  5. echo '<td>'.$row["prenda"].'</td>';
  6. echo '<td>'.$row["precio"].'</td></tr>';
  7. }
  8. ?>

En este while ya no sale ningún mysqli. Sigue sin funcionar y el código de error es Notice: Undefined variable: result in /Applications/XAMPP/xamppfiles/htdocs/sastre/pedidos.php on line 18

Warning: mysql_fetch_array() expects parameter 1 to be resource, null given in /Applications/XAMPP/xamppfiles/htdocs/sastre/pedidos.php on line 18

Notice: Undefined variable: result in /Applications/XAMPP/xamppfiles/htdocs/sastre/pedidos.php on line 24

Warning: mysql_free_result() expects parameter 1 to be resource, null given in /Applications/XAMPP/xamppfiles/htdocs/sastre/pedidos.php on line 24