Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $cdb = new PDO('mysql:dbname=xxx;host=localhost', 'xxx', 'xxx');
- $twofirst = substr($img['hash'], 0, 2);
- foreach ($cdb->query("SELECT * FROM images ORDER BY posted DESC LIMIT 9") AS $img)
- {
- echo '
- <a style="position: relative; display: block; height: 200px;" href="/booru/post/view/' . $img['id'] . '" target="_blank">
- <img src="booru/timthumb.php?src=thumbs/' . $img['hash'] . '/' . $twofirst . '&h=125&w=125" width="125px" style="border-style: none"/>
- </a>
- ';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement