I am new on the Platform and also new in Programming. So you need it to explain it to me on the easy way. Normally i Programm microchips and have nothing to do with DBs. ^^
UPDATE controll SET ticket_new = $_POST["chagne_tickets_new"] WHERE language = $_POST["Change_language"]
$Change_ticket_post = $_POST["Change_tickets_new"]
$Change_language = $_POST["Change_language"]
UPDATE controll SET ticket_new =". $Change_ticket_post. " WHERE language =". $Change_language;
You are doing it wrong.
First of all, it's best practice to use
' (single quotes) to wrap array keys.
So, you should do like this:
<?php $Change_ticket_post = $_POST['Change_tickets_new']; $Change_language = $_POST['Change_language'];
Second, the values in a MySQL query should be wrapped within
' (single quotes) too.
So, your query would be:
<?php $query = "UPDATE controll SET ticket_new='$Change_ticket_post' WHERE language='$Change_language';
And most of all, you need to learn a lot.
Coding best practices: http://www.php-fig.org/psr/psr-1/
SQL Injection: How can I prevent SQL-injection in PHP?
Sanitize & escape user data: What's the best method for sanitizing user input with PHP?