Som overskriften siger : Hvorfor virker dette ikke
Det bliver sat ind i en database .. "id" er varchar , og resten er INT
session_start();
$id = $_SESSION['username'];
$slorteknik = $_REQUEST["slorteknik"];
$frbpaaland = $_REQUEST["frbpaaland"];
$bomninger = $_REQUEST["bomninge"];
$praestart = $_REQUEST["praestart"];
$trim = $_REQUEST["trim"];
$tyndluft = $_REQUEST["tyndluft"];
$haardluft = $_REQUEST["haardluft"];
$bmrundinger = $_REQUEST["bmrundinger"];
$starter = $_REQUEST["starter"];
$laenseteknik = $_REQUEST["laenseteknik"];
$acceleration = $_REQUEST["acceleration"];
$vendinger = $_REQUEST["vendinger"];
$type = $_REQUEST["type"];
$conn = mysql_connect("******", "*******", "******);
mysql_select_db("****");
$insertSQL = "insert into $type (id, slorteknik, frbpaaland, bomninger, praestart, trim, tyndluft, haardluft, bmrundinger, starter, laenseteknik, acceleration, vendinger)
values ('$id', $slorteknik, $frbpaaland, $bomninger, $praestart, $trim, $tyndluft, $haardluft, $bmrundinger, $starter, $laenseteknik, $acceleration, $vendinger) ";
mysql_query($insertSQL) or die ("nix " . mysql_error() );
Fejlmeldingen
You have an error in your SQL syntax near ' 11, 11, 13, 13, 13, 13, 13, 13, 11)' at line 2
>>>Swiatecki<<<