threadr.lostcave.ddnss.de/threadr/login/redirect.php

12 lines
390 B
PHP

<?php
session_start();
$username = $_POST['username'];
$password = $_POST['password'];
$pdo = new PDO('mysql:host=localhost;dbname=web', 'webstuff', 'Schei// auf Pa$$w0rter!');
$statement = $pdo->prepare('SELECT id, name, authentication_algorithm, authentication_string FROM users WHERE name = :username;');
$result = $statement->execute(array('username' => $username));
echo $result;
?>