Hi ,

ich habe 2 datein

post.php

PHP-Code:
include ("config.php"); 

$sql ="insert into d3mod SET 10=$MN', 2=$GN'" ;

$result mysql_query($sql) OR die(mysql_error()); 


und

config.php

PHP-Code:

<?php



$host 
"localhost";

$pass "[PWD]";

$user "dadie";

$db "dadie";


@
mysql_connect($host$user$pass) OR die(mysql_error());

mysql_select_db($db) OR die(mysql_error());



?>


forweg post.php ist etwa 300 zeilen lang darum poste ich nur den wichtigen code.

So das müsste doch eigentlich rihcitg sein oder ?
Nur leider krieg ich IMMER egal was ich mache folgende fehler Meldungen :

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax

Ich habe schon folgende Alternativen ausprobiert :

PHP-Code:

$sql 
"INSERT INTO d3mod (1,2,3,4,5,6,7,8,9) VALUES ($MN,$GN,$MT,$MS,$HP2,$ED,$datum1,$datum2,$BS3)"

PHP-Code:
$sql ="INSERT INTO d3mod (1,2,3,4,5,6,7,8,9) VALUES (".$MN.",".$GN.",".$MT.",".$MS.",".$HP2.",".$ED.",".$datum1.",".$datum2.",".$BS3.");"

PHP-Code:
$sql ="INSERT INTO 'd3mod' (1,2,3,4,5,6,7,8,9) VALUES ($MN,$GN,$MT,$MS,$HP2,$ED,$datum1,$datum2,$BS3)"