Ver Mensaje Individual
  #1 (permalink)  
Antiguo 31/12/2003, 22:12
Avatar de pereztroff
pereztroff
 
Fecha de Ingreso: junio-2002
Ubicación: En la Internet.
Mensajes: 4.068
Antigüedad: 21 años, 10 meses
Puntos: 5
¿que falla en este codigo?

Código PHP:
<?php $con mysql_connect("localhost""xxx""xxxxxxx")or die("Connect Error: ".mysql_error());
$db="xxxxxxxxxxxx";
mysql_select_db($db$con)or die("Connect Error: ".mysql_error());
$sql="select * from minas";
mysql_query($sql)or die("Your error statement here".mysql_error());
while (
$row mysql_fetch_array($result)) { ?>
poblacion: <?php echo $row['poblacion']; ?>
descripcion: <?php echo $row['descripcion']; ?>
nombre: <?php echo $row['nombre']; ?><br><br>
<?php
}
mysql_free_result($result);
mysql_close($con);
?>
error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in public_html/listarminas.php on line 6