Advertisement
Vodkaholic

Untitled

Apr 30th, 2011
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <?php
  2. $output = '';
  3. $cdb = new PDO('mysql:dbname=****;host=localhost', 'user', 'pass');
  4. $res = $cdb->query("SELECT COUNT(*) AS imgtotal FROM images");
  5. $ct = $res->fetch(PDO::FETCH_ASSOC);
  6. 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>';
  7. echo $output;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement