Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $output = '';
- $cdb = new PDO('mysql:dbname=****;host=localhost', 'user', 'pass');
- $res = $cdb->query("SELECT COUNT(*) AS imgtotal FROM images");
- $ct = $res->fetch(PDO::FETCH_ASSOC);
- for ($x = 0; $x < strlen($ct['imgtotal']); $x++) $output .= ' <a href="http://animelon.com/booru/" target="_blank"><img alt="' . $ct['imgtotal'][$x] . '" src=" booru/contrib/home/counters/default/' . $ct['imgtotal'][$x] . '.gif" width="35" height="75" style="border-style: none"/></a>';
- echo $output;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement