Ay que horror! Que pena de verdad, jajajajaja! Bueno, ya lo acomode, jejee, pero aún no me arroja resultados, solo me muestra los titulos de la tabla pero no me arroja resultados del filtro. :(
Cita: Código PHP:
function filtro($fecha1, $fecha2){
$sql="SELECT * FROM tbl_movarticulo WHERE fechaMovimiento>=$fecha1 AND fechaMovimiento<=$fecha2";
$resul = mysqli_query($this->conn, $sql) or die(mysqli_error());
if($resul){
echo "<table align='center'><thead>
<th>Articulo</th>
<th>Movimiento</th>
<th>Cantidad</th>
<th>Departamento</th>
<th>Estado</th>
<th>Observaciones</th>
<th>Fecha</th>
<th>Modificar</th>
<th>Eliminar</th>
</thead><tbody>";
while ($row = mysqli_fetch_array($resul)){
echo "<td align='center'>".$row["articulo"]."</td>";
echo "<td align='center'>".$row["movimiento"]."</td>";
echo "<td align='center'>".$row["cantidad"]."</td>";
echo "<td align='center'>".$row["departamento"]."</td>";
echo "<td align='center'>".$row["estado"]."</td>";
echo "<td align='center'>".$row["observaciones"]."</td>";
echo "<td align='center'>".$row["fechaMovimiento"]."</td>";
}
}else{
echo "No hay movimientos.";
}
echo "</tbody></table>";
}