Fixed redirect link and removes test echo's

This commit is contained in:
Joey Lai
2017-02-01 12:45:26 +01:00
parent 8e81cec843
commit 700e27e5e3
4 changed files with 7 additions and 18 deletions

View File

@@ -19,7 +19,7 @@ function getUser() {
}
function getUserID() {
$stmt = $GLOBALS["db"]->prepare("
$stmt = prepareQuery("
SELECT
`userID`
FROM
@@ -73,7 +73,7 @@ function validateLogin($username, $password){
}
function fbLogin($fbID) {
$stmt = $GLOBALS["db"]->prepare("
$stmt = prepareQuery("
SELECT
`email`,
`userID`,
@@ -91,7 +91,7 @@ function fbLogin($fbID) {
}
function getfbUserID($fbID) {
$stmt = $GLOBALS["db"]->prepare("
$stmt = prepareQuery("
SELECT
`userID`,
`role`