Database
Это главная страница проекта.
// SELECT
$user = $db->query("SELECT * FROM users WHERE id = ?", [$id]);
// INSERT
$db->execute("INSERT INTO users (email, password) VALUES (?, ?)", [$email, $pass]);
// UPDATE
$db->execute("UPDATE users SET email = ? WHERE id = ?", [$email, $id]);
// DELETE
$db->execute("DELETE FROM users WHERE id = ?", [$id]);
Список пользователей
Warning: Undefined variable $users in /home/SSHoot/web/sshoot.com/public_html/app/Views/db.php on line 20
Warning: foreach() argument must be of type array|object, null given in /home/SSHoot/web/sshoot.com/public_html/app/Views/db.php on line 20