public static function getByEmail($pdo, $email) { $stmt = $pdo->prepare("SELECT * FROM users WHERE email = ?"); $stmt->execute([$email]); $userData = $stmt->fetch(PDO::FETCH_ASSOC); if ($userData) { return new self($userData); } else { return null; } } ログイン

ログイン


Warning: require_once(/home/qrestia/wafuu.org/public_html/../templates/login.php): Failed to open stream: No such file or directory in /home/qrestia/wafuu.org/public_html/index.php on line 14

Fatal error: Uncaught Error: Failed opening required '/home/qrestia/wafuu.org/public_html/../templates/login.php' (include_path='/home/qrestia/wafuu.org') in /home/qrestia/wafuu.org/public_html/index.php:14 Stack trace: #0 {main} thrown in /home/qrestia/wafuu.org/public_html/index.php on line 14