function llenar(Combustible $comb) { echo 'carcocha: ' . $comb->usar(); }
?> </select> </div> <input type="submit" name="btnUpdFuel" value="Actualizar" class="btn btn-block btn-primary"> <input type="reset" value="Cancelar" class="btn btn-block btn-default"> </form> </div> <div id="divRep" class="col-lg-5" style="display:none;"> <table class="table table-hover"> <tr> <td>Vehículo</td> <td>Promedio</td> </tr> <?php $reporte = array(); $combustible = new Combustible(); $reporte = $combustible->reporte(); $repVehiculo = new Vehiculo(); for ($x = 0; $x < count($reporte); $x++) { $tupla = array(); $tupla = $reporte[$x]; if ($tupla[0] == $tupla[1]) { $repVehiculo->get($tupla[0]); echo '<tr><td>' . $repVehiculo->placa . '</td><td>' . $tupla[2] . '</td></tr>'; } } ?> </table> </div> </div> <?php