Passwort anfordern
""){ $stmt = $pdodb->prepare("SELECT ID,username,emailis,password,fname FROM girls WHERE (username=:user OR emailis=:user) LIMIT 1"); $stmt->setFetchMode(PDO::FETCH_ASSOC); $stmt->execute(array(':user' => trim($_REQUEST["useris"]))); if ($stmt->rowCount() > 0) { //echo 'found'; while($i2=$stmt->fetch()){ $user_id = $i2["ID"]; $username = $i2["username"]; $emailis = $i2["emailis"]; $passis = $i2["password"]; $fname = $i2["fname"]; } $subject = 'emotu.com Account Login Information'; $body = ' Full Name: '.$fname.' Username: '.$username.' Password: '.$passis.' Email: '.$emailis.' Your Profile: http://www.emotu.com/'.str_replace(" ","-",$username).' ------------------------------------------------------- '; //echo $email; sendmail('', $emailis, $subject, $body); echo 'user found. Password sent to your email'; }else{ echo 'user not found'; } } ?>
Username or Email: