vendredi 1 juillet 2016

Newbe asking / MySQL Update with PHP

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. ^^


I just du for myself a Homepage and try to do all by myself. Now i try to Update my "Backend" Settings in the Database over a the "POST" Methode.

UPDATE controll SET ticket_new = $_POST["chagne_tickets_new"]
WHERE language = $_POST["Change_language"]

Thats just e example how i want it but i have no idea how to do it. i also tried it like that:

$Change_ticket_post = $_POST["Change_tickets_new"]
$Change_language = $_POST["Change_language"]

UPDATE controll SET ticket_new =". $Change_ticket_post.
"WHERE language =". $Change_language;

Also that dosen`t works and i got a FATAL ERROR also.

Aucun commentaire:

Enregistrer un commentaire