<?php
include("db.php");

$username = $_POST['username'];
$car = $_POST['car'];
$client = $_POST['client'];
$job = $_POST['job'];
$starttime = $_POST['start_time'];
$endtime = $_POST['end_time'];
$startmileage = $_POST['start_mileage'];
$endmileage = $_POST['end_mileage'];
$distance = $_POST['distance'];
$account = $_POST['account'];
$cost_per_trip = $_POST['cost_per_trip'];
$date = $_POST['date'];

if(isset($_POST['get_filter'])){

$result = mysqli_query($conn, "INSERT INTO filter(username,car,client,job,date,start_time,end_time,start_mileage,end_mileage,distance,account,cost_per_trip)VALUES('$username','$car','$client','$job','$date','$starttime','$endtime','$startmileage','$endmileage','$distance','$account','$cost_per_trip')" );
}
?>
