forked from root/threadr.lostcave.ddnss.de
started implementation
parent
6bb9132949
commit
e86f6cc59b
|
@ -0,0 +1,11 @@
|
||||||
|
<?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 FROM users WHERE name = :username;');
|
||||||
|
$result = $statement->execute(array('username' => $username));
|
||||||
|
echo $result;
|
||||||
|
?>
|
Loading…
Reference in New Issue