i have this query:
$query = "INSERT INTO clanwar (name, tag, typ, datum, ergebnis1, ergebnis2) VALUES (\'$HTTP_POST_VARS["name"]\', \'$HTTP_POST_VARS["tag"]\', \'$HTTP_POST_VARS["typ"]\', \'$HTTP_POST_VARS["datum"]\', \'$ergebnis1\', \'$ergebnis2\')";
but on executing it, i get this error-message:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/sites/site05/web/new_clanwar.php on line 19
i think it has got something to do with the ' ' or \ but i can't figure it out... can someone please help me out?
frag patrick.metz@epost.de
$query = "INSERT INTO clanwar (name, tag, typ, datum, ergebnis1, ergebnis2) VALUES (\'$HTTP_POST_VARS["name"]\', \'$HTTP_POST_VARS["tag"]\', \'$HTTP_POST_VARS["typ"]\', \'$HTTP_POST_VARS["datum"]\', \'$ergebnis1\', \'$ergebnis2\')";
but on executing it, i get this error-message:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/sites/site05/web/new_clanwar.php on line 19
i think it has got something to do with the ' ' or \ but i can't figure it out... can someone please help me out?
frag patrick.metz@epost.de