update php straight from da db.inc

This commit is contained in:
Thies Mueller 2021-01-10 12:12:48 +01:00
parent eacbf81a9a
commit 7fefbe994b

View File

@ -1,6 +1,7 @@
<?php <?php
session_start(); session_start();
$pdo = new PDO('mysql:host=localhost;dbname=usertable', 'usertable', 'password'); //$pdo = new PDO('mysql:host=localhost;dbname=usertable', 'usertable', 'password');
include 'db.inc.php';
$username = $_SESSION['username']; $username = $_SESSION['username'];
$statement = $pdo->prepare("SELECT * FROM users WHERE username = :username"); $statement = $pdo->prepare("SELECT * FROM users WHERE username = :username");