forked from root/threadr.lostcave.ddnss.de
12 lines
398 B
PHP
12 lines
398 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['name'];
|
|
?>
|