Alright so Im not sure what Im doing wrong here, but Its not giving me any errors or such but its not inserting anything into the SQL either with this query.
function insertVehicle($vehicleid, $color1, $color2, $posX, $posY, $posZ, $vw, $int) {
global $handler;
$query = "INSERT INTO vehicles (VehID, Color1, Color2, PosX, PosY, PosZ, VW, INT) VALUES ($vehicleid, $color1, $color2, $posX, $posY, $posZ, $vw, $int)";
mysqli_query($handler, $query);
}
Function usage
insertVehicle(411, 255, 255, 0.00, 0.00,0.00, 12, 10);
SQL structure
https://postimg.org/image/qysshlrh3/