Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $queryget = mysql_query("SELECT * FROM $newstable ORDER BY id DESC LIMIT 2,20");
- ?><p><strong>Archief</strong></p><p><?php
- while ($row = mysql_fetch_assoc($queryget)) {
- $idPost = $row['id'];
- $title = $row['title'];
- $shortdatePost = $row['date2'];
- $space = urldecode('%20');
- if (strlen($title) > 13) {
- $stitle = substr($title,0,13);
- $stitle .= "...";
- }
- echo "$shortdatePost$space<a href=\"index.php?action=view&id=" . $idPost . "&page=1\" title=\"$title\" style=\"color:#333; text-decoration:none\" onmouseover=\"this.style.color='black'\"onmouseout=\"this.style.color='#333'\">$stitle</a><br />";
- }
- $querygetrownum = mysql_num_rows($queryget);
- if ($querygetrownum >= 22) {
- echo "<a href=\"index.php?action=archief&page=1\" title=\"Archief\" style=\"color:#333; text-decoration:none\" onmouseover=\"this.style.color='black'\"onmouseout=\"this.style.color='#333'\">Kijk dieper in archief...</a>";
- }
- ?></p>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement