Newest pastes:

query('SELECT * FROM pastes ORDER BY id DESC LIMIT 5'); while($row = $stmt->fetch(PDO::FETCH_ASSOC)) { $title = $row['title']; if(strlen($title)>25)$title = substr($title,0,25)."..."; echo "".$title.""; } ?>