started implementation

master
BodgeMaster 2020-02-19 15:50:13 +01:00
parent 6bb9132949
commit e86f6cc59b
1 changed files with 11 additions and 0 deletions

View File

@ -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;
?>