[insert_php]
setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
$stmt = $db->query(“SELECT SONGTITLE,TIMESTAMP,VoteRating,ID FROM History ORDER BY id DESC LIMIT 1”);
while($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
echo $row[‘SONGTITLE’];
}
?>
[/insert_php]