prepare("SELECT path FROM uploaded_avatars WHERE user_id = :user_id"); $stmt->bindValue(':user_id', $userId, SQLITE3_INTEGER); $result = $stmt->execute(); while ($row = $result->fetchArray(SQLITE3_ASSOC)) { $uploadedAvatars[] = $row['path']; } ?>

avatar
<?= $image ?>
<?= $filename ?>
>
>
prepare($query); $query->bindValue(':userId', $userId, SQLITE3_INTEGER); $result = $query->execute(); while ($row = $result->fetchArray(SQLITE3_ASSOC)) { $currencyId = $row['id']; $currencies[$currencyId] = $row; } $userData['currency_symbol'] = "€"; ?>
prepare($sql); $result = $stmt->execute(); $row = $result->fetchArray(SQLITE3_ASSOC); $loginDisabled = $row['login_disabled']; $showTotpSection = true; if ($loginDisabled && !$userData['totp_enabled']) { $showTotpSection = false; } if ($showTotpSection) { ?>