Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(0);
- $con=mysqli_connect("localhost","root","","androidtest");
- if (mysqli_connect_errno($con))
- {
- echo "Failed to connect to MySQL: " . mysqli_connect_error();
- }
- $username = $_POST["username"];
- $name = $_POST["name"];
- $lastname = $_POST["lastname"];
- $password = $_POST["password"];
- $age = $_POST["birthDate"];
- $gender = $_POST["playerGender"];
- $email = $_POST["email"];
- $adress = $_POST["adress"];
- $city = $_POST["city"];
- $phone = $_POST["phone"];
- $mobile = $_POST["mobile"];
- $singleScore = $_POST["singleScore"];
- $doubleScore = $_POST["doubleScore"];
- $query = "UPDATE profile SET username='$username',password='$password',gender='$gender',firstName='$name',lastName='$lastname',email='$email',address='$adress',city='$city',dateOfBirth='$age',mobilePhone='$mobile',phone='$phone ',scoreSingle='$singleScore',scoreDouble='$doubleScore' WHERE `username` <> '$name'";
- $result = mysqli_query($con,$query);
- mysqli_close($con);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement