este es mi codigo
Código PHP:
<?php
require('../Gerente/menugerente.html');
require('conexion.php');
$fecha_termino=$_POST['fecha_termino'];
$fecha_inicio=$_POST['fecha_inicio'];
$clave_t_e=$_POST['clave_t_e'];
$query="SELECT FROM entrada WHERE clave_t_e='$clave_t_e' AND fecha_inicio BETWEEN '$fecha_inicio' AND '$fecha_termino'";
$resultado=$mysqli->query($query);
?>
<html>
<head>
<title>Reportes por Fechas</title>
<link href='../imagenes/logo.png' rel='shortcut icon' type='image/png'>
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="../css/estilotablas.css">
</head>
<body><center>
<br></br>
<br></br>
<table>
<td colspan="2" align="center"><h2><b>Reportes por Fechas</b></h2></td>
<tr>
<td><center><b>Fecha</b></center></td>
<td><center><b>Matricula</b></center></td>
</tr>
<tbody>
<?php while($row=$resultado->fetch_assoc()){ ?>
<tr>
<td><center><?php echo $row['fecha_inicio'];?>
</center></td>
<td><center><?php echo $row['fecha_termino'];?>
</center></td>
<td><center><?php echo $row['clave_t_e'];?>
</center></td>
</tr>
<?php } ?>
</tbody>
</table>
</center>
</body>
</html>
Código:
regalenme una mano amigos ( ! ) Fatal error: Call to a member function fetch_assoc() on a non-object in C:\wamp\www\pagina\sistema\verfechas.php on line 55