prepare('SELECT matricula FROM vehiculos'); $smt->execute(); $vehiculos = $smt->fetchAll(); if (isset($_POST['submit'])) { if (!hash_equals($_SESSION['csrf'], $_POST['csrf'])) die(); try { $connection = new PDO($dsn, $username, $password, $options); $sql = "SELECT * FROM carburante WHERE vehiculo = :vehiculo ORDER BY fecha ASC" ; $marca = $_POST['vehiculo']; $statement = $connection->prepare($sql); $statement->bindParam(':vehiculo', $marca, PDO::PARAM_STR); $statement->execute(); $result = $statement->fetchAll(); } catch(PDOException $error) { echo $sql . "
" . $error->getMessage(); } } ?>

Busca repostajes por vehículo


rowCount() > 0) { ?>

Resultados para vehículo

# Fecha Vehículo Kilómetros Litros Descuento Precio/litro Importe Recorridos
No results found for .