This commit is contained in:
Marijn Jansen
2017-02-03 11:12:02 +01:00
parent b8d6136a9d
commit c69b5d8ed3
5 changed files with 64 additions and 0 deletions

View File

@@ -10,6 +10,11 @@ else {
or die('Error connecting to mysql server');
}
/**
* Helperfunction to create a database query.
* @param string $query
* @return PDOStatement
*/
function prepareQuery(string $query) : PDOStatement {
return $GLOBALS["db"]->prepare($query);
}