12 lines
378 B
PHP
12 lines
378 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;');
|
|
$result = $statement->execute(array('username' => $username));
|
|
echo $result[0]['name'];
|
|
?>
|