I have an app that lets users register and saves their data to a web server however I'm having trouble accessing the users saved data after they have registered. What I want to do is let them register and after that they can then update more information about themselves, here is my register class php file that is called from within the app.
<?php
$con = mysqli_connect("xxx", "xxx", "xxx", "xxx");
$username = $_POST["username"];
$password = $_POST["password"];
$statement = mysqli_prepare($con, "INSERT INTO user (username, password) VALUES (?, ?)");
mysqli_stmt_bind_param($statement, "ss", $username, $password);
mysqli_stmt_execute($statement);
$response = array();
$response["success"] = true;
print_r(json_encode($response));
?>
This works fine and saves the username and password into a new user on my webserver. Once they have logged in how would I go about inputting new data into their specific entry in the webserver. Any pointers?