I do not list my data in a table, I do not know if I'm failing to call the query.
The error is:
Error Undefined variable: mysqli_query
Code
<?php
include ("db/conexion.php");
$query = "SELECT * FROM infraccion";
$result =$conexionBD->query($query);
echo "hola";
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<div id="TablaMayor">
<center><img src="logo.png">
<div id="titulo">
<center><h1>Nombres, y valor de cada tipo de infraccion</h1></center>
</div>
<table>
<thead>
<tr class="centro">
<td>id</td>
<td>Nombre Infraccion</td>
<td>fecha</td>
<td>valor</td>
</tr>
<tbody>
<?php while ($row=$result->mysqli_query()) { ?>
<tr>
<td><?php echo $row['id'];?></td>
<td><?php echo $row['nombre_infraccion'];?></td>
<td><?php echo $row['fecha'];?></td>
<td><?php echo $row['valor'];?></td>
</tr>
<?php } ?>
</tbody>
</thead>
</table>
</center>
</div>
</body>
</html>