prepare("SELECT * FROM colors ORDER BY timestamp DESC"); $stmt->execute(); $result = $stmt->fetchAll(PDO::FETCH_ASSOC); $total = 255 * 255 * 255; $named = count($result); $remaining = $total - $named; ?>
= formatWithCommas($named) ?>/= formatWithCommas($total) ?> colors named (= formatWithCommas($remaining) ?> left)
" . htmlspecialchars(base64_decode($row['name'])) . " • #" . $row["color"] . "
"; echo "