Last active
August 2, 2016 18:20
-
-
Save pierew/7056ec06cbb9212d1b238bfe286ca038 to your computer and use it in GitHub Desktop.
PHP Toolkit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Piere Woehl <[email protected]> | |
*/ | |
$connection | |
function queryDB($SQL,$FIELD) { | |
initDB(); // Abstract Function, you have to create yourself | |
global $connection; | |
$result = mysqli_fetch_assoc($connection->query($SQL, MYSQLI_USE_RESULT)); | |
return $result[0][$FIELD]; | |
} | |
function queryDB_RAW($SQL) { | |
initDB(); // Abstract Function, you have to create yourself | |
global $connection; | |
$result = $connection->query($SQL, MYSQLI_USE_RESULT); | |
return $result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment