cleanup and sync

This commit is contained in:
2025-03-07 03:57:09 -07:00
parent 551abb66b5
commit 3be02e6768
6 changed files with 190 additions and 49 deletions
+7 -2
View File
@@ -13,10 +13,13 @@ define('USER', $db_user);
define('PASS', $db_pass);
define('DB', 'vintagecodingdotnet');
// **************** ACCOUNT QUERIES *************** //
/*
* For use by an administrator.
* IMPORTANT: This should only be called once a user has been authorized as an
* administrator.
*
* TODO: Use JOIN to get role, profile picture, etc.
* TODO: Use JOIN to get other columns like roles and profile pictures.
*/
function get_all_accounts()
{
@@ -50,6 +53,8 @@ function get_account_role($username)
return $results;
}
// **************** ARTICLE QUERIES *************** //
function get_all_article_cards()
{
$conn = mysqli_connect(HOST, USER, PASS, DB);