I need help with my php Code which is supposed to update my mysql database. I tried it this way:
<?php mysql_connect("servername","name","passwort");
mysql_select_db("dbname");
$name = $_GET["name"]; $points = $_GET["points"];
$query = "UPDATE highscore SET points=".$points." WHERE name='".$name."'";
mysql_query($query)
mysql_close(); ?>
I called it with:
http://.../write.php?name=%22Alexa%20Bomkamp%22&points=%22100
But literally nothing happened. No error, but also no update.
Does anyone know what im doing wrong?
Thanks for help 🙂
url is wrong %22 takes “ htmlentity avoid it and number contains also %22
call with this url:
…/write.php?name=Alexa%20Bomkamp&points=100