Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // get database connection
- $db = pdoDB::getConnection();
- // if userid and password is set
- $userid = $_REQUEST["userid"];
- $password = $_REQUEST["password"];
- $sql = $db->prepare("select username, password, userID
- from l_user
- where userID = :userid");
- $stmt = $sql->execute(array(':userid' => $userid));
- //$stmt = $db->query($sql);
- $dbPassword = "";
- $dbUserid = "";
- // loop through and get data
- while ($result = $stmt->fetch(PDO::FETCH_OBJ)) {
- $dbUserid = $result->userID;
- $username = $result->username;
- $dbPassword = $result->password;
Add Comment
Please, Sign In to add comment