Hi, i am trying to update som info in my database with php. I use mysql.
[php]//Create INSERT query
$qry = (“UPDATE kunder SET epost={$_POST[‘email’]}, fordon={$_POST[‘fordon’]}, hyresbelopp={$_POST[‘hyresbelopp’]}, name={$_POST[‘name’]}, ettavtal={$_POST[‘ettavtal’]}, tvaavtal={$_POST[‘tvaavtal’]}, treavtal={$_POST[‘treavtal’]}, fyraavtal={$_POST[‘fyraavtal’]}, femavtal={$_POST[‘femavtal]’}, sexavtal={$_POST[‘sexavtal’]}, sjuavtal={$_POST[‘sjuavtal’]}, attaavtal={$_POST[‘attaavtal’]}, nioavtal={$_POST[‘nioavtal’]} WHERE id={$_POST[‘id’]}”);
$result = @mysql_query($qry);[/php]
Currently I get syntax error, unexpected ‘}’, expecting ‘]’ on the $qry
I’ve tried to put every column inside [] as it says on dev.mysql. Example, [, name={$_POST[‘name’]}]
How can I make this to a functional update script?