T201704031314

This commit is contained in:
Leander
2017-04-03 13:14:54 +02:00
parent 7827e582d5
commit 37039f7baf
2 changed files with 12 additions and 7 deletions

View File

@@ -14,6 +14,11 @@
$uid = md5(uniqid(rand(), true));
$db = new Database();
$det = $db->query('SELECT "question", "answer0", "answer1", "answer2", "answer3", "Categories_ID"
FROM "Questions" WHERE "ID" = 1')['data'][0];
if(preg_match(PATTERN, $name) != 1) {
$error = 11101;
} else {