$driveType = $row['drive_type']; $fuelType = $row['fuel_type']; $year = $row['year']; $odometer = $row['odometer']; $colour = $row['colour']; $doors = $row['doors']; $seats = $row['seats']; $engineSize = $row['engine_size']; $cylinders = $row['cylinders']; $modelId = $row['model_id']; } } } if (isset($_POST['hdnAction'])) { if ($_POST['hdnAction'] == 'update') { $result = $carCon->updateCar($_POST['hdnCarId'], $_POST['txtRego'], $_POST['txtBodyType'], $_POST['txtTransmission'], $_POST['txtDriveType'], $_POST['txtFuelType'], $_POST['txtYear'], $_POST['txtOdometer'], $_POST['txtColour'], $_POST['txtDoors'], $_POST['txtSeats'], $_POST['txtEngineSize'], $_POST['txtCylinders'], $_POST['txtModelId']); if ($result->errorInfo()[2] == null) { $editResult = true; } else { $editResult = $result->errorInfo()[2]; } } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->