query("SELECT * FROM list ORDER BY id DESC LIMIT 100"); function showMedal($count) { if ($count > 10) return "gold"; if ($count > 5) return "silver"; return "bronze"; } while ($row = $result->fetch(PDO::FETCH_ASSOC)) { ?> " style="background-image:url()" href="https://twitter.com//status/" target="_blank"> getMessage(); exit(); } ?>