Ejemplo n.º 1
0
 function checkUsernameExist($username)
 {
     $result = "NotExist";
     $sql = "SELECT * FROM `userlogin` WHERE `username`='" . $username . "'";
     $dbObj = new InteractDatabase();
     $res = $dbObj->getData($sql);
     if ($res->num_rows > 0) {
         $result = "Exist";
     }
     return $result;
 }