Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- include 'conn.php';
- $telefon = $_POST['telefon'];
- $uuid = $_POST['uuid'];
- $username = $_POST['username'];
- $password = $_POST['password'];
- if (empty($username))
- die("-3");
- if (empty($password))
- die("-4");
- if (empty($uuid))
- die("-5");
- if (empty($telefon))
- die("-6");
- $sql = "SELECT * FROM users WHERE username='$username' AND password='$password'";
- $result = mysql_query($sql) or die(mysql_error());
- if (mysql_num_rows($result) < 1)
- die("-1");
- if (mysql_num_rows($result) == 1) {
- $rad = mysql_fetch_array($result);
- $id = $rad['id'];
- $sql = "UPDATE users SET uuid='$uuid' AND telefon='$telefon'";
- mysql_query($sql) or die(mysql_error());
- echo $id;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement