[php]$vehreg = $_POST["veh_reg"];
$day = $_POST["day"];
$month = $_POST["month"];
$year = $_post["year"];
$date = ($year . ‘-’ . $month . ‘-’ . $day); //<----this part does not work, have tried many routes and canne get it to work because of the date format in sql is USA not UK
$sql = “INSERT INTO daybook_db (veh_date, veh_reg) VALUES (’$date’, ‘$vehreg’)”;
[/php]