This part is what is affected:
VALUES ($name, $email, $betreff, $message")
The variables need to be wrapped in quotes:
VALUES ('$name', '$email', '$betreff', '$message')
Your double quote at the end is not in the right spot because you forgot a closing bracket )
(Name,Mail,Betreff,Message) VALUES ($name, $email, $betreff, $message");
^
which should be
VALUES ('$name', '$email', '$betreff', '$message')");
The affected line should now look like:
$sql_befehl = mysql_query("INSERT INTO Contact_Requests (Name,Mail,Betreff,Message) VALUES ('$name', '$email', '$betreff', '$message')");
Sidenote: Your present code is open to SQL injection. Use mysqli_*
functions. (which I recommend you use and with prepared statements, or PDO)
mysql_*
functions are deprecated and will be removed from future PHP releases.
Since you are just beginning to get into coding:
Here are a few tutorials on prepared statements that you can study and try:
Here are a few tutorials on PDO: