update php straight from da db.inc
This commit is contained in:
parent
eacbf81a9a
commit
7fefbe994b
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user