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);
?>
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in public_html/listarminas.php on line 6