Untitled

Anonymous
php
06/08/2022 3:09 AM
476 B
22
Indexable
$exists = false;
            $user = $_POST["username"];
            $pass = $_POST["password"];
            $cpass = $_POST["cpassword"];
            $db_check = "SELECT * FROM `users`.`userdata` WHERE `username` = $user";
            $result1 = $conn->query($db_check);
            if($result1->num_rows > 0){
                $exists = true;
            }
Editor is loading...