Website Summary Files Commits Branches @commit @diff @stats
path: root / controllers / test.php
diff options
context:
space:
mode:
Commit5c0dad31512870257178e9950ae688e57206dd22 (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-01-19 07:58:29 +0200
Committer
 Syndamia <kamen@syndamia.com>
2025-01-19 07:58:29 +0200
Files422b1ae3d9f0d50a1efe939a1b08df6474f9d602 /controllers/test.php
nowayforward_human-5c0dad31512870257178e9950ae688e57206dd22.tar
nowayforward_human-5c0dad31512870257178e9950ae688e57206dd22.tar.gz
nowayforward_human-5c0dad31512870257178e9950ae688e57206dd22.zip
Parentc36724bb6cb37e03d72b0d6f0995e0a91b871edf (diff)
feat(database): Return user id upon creation
1 files changed, 1 insertions, 1 deletions
-rw-r--r--controllers/test.php2
diff --git a/controllers/test.php b/controllers/test.php
index 1b3b2c4..8e79fae 100644
--- a/controllers/test.php
+++ b/controllers/test.php
@@ -1,5 +1,5 @@
<?php
function on_post() {
- Database\User::create($_POST["Username"], "", "User");
+ echo "Id: " . Database\User::create($_POST["Username"], "", "User");
}