Tengo un problema con este codigo:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<?php
$db_host="localhost";
$db_usuario="root";
$db_contra="";
$conexion=mysqli_connect($db_host,$db_usuario,$db_contra);
$consulta="SELECT* FROM datospersonales";
$resultados=mysqli_query($conexion,$consulta);
$fila=mysqli_fetch_row($resultados);
echo $fila[0];
?>
</body>
</html>
Me marca este error: Fatal error: Uncaught TypeError: mysqli_fetch_row(): Argument #1 ($result) must be of type mysqli_result, bool given in C:\xampp\htdocs\php\basededatos.php:15 Stack trace: #0 C:\xampp\htdocs\php\basededatos.php(15): mysqli_fetch_row(false) #1 {main} thrown in C:\xampp\htdocs\php\basededatos.php on line 15 Soy principiante y no entiendo que esta mal