Advertisement
Guest User

Untitled

a guest
Jun 30th, 2017
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.59 KB | None | 0 0
  1. <?
  2. $db_host = "localhost";
  3. $db_user = "root";
  4. $db_pass = "DBPASS";
  5. $db_name = "minecraft2";
  6. $db = mysql_connect($db_host,$db_user,$db_pass);
  7. mysql_select_db ($db_name) or die ("Cannot Connect To Database");
  8.  
  9. $query = "SELECT * FROM users";
  10. $one = mysql_query($query);
  11. $two = mysql_num_rows($one);
  12. $users = $two. " Users";
  13.  
  14. header("Content-type: image/gif");
  15. $calc = $topics;
  16. $im = imagecreatefromgif("sig.gif");
  17. $color = imagecolorallocate($im, 0,12,47);
  18. $txt2 = (imagesx($im) - 2 * strlen($calc)) / 2;
  19. imagestring($im, 3, $txt2, 55, $users, $color);
  20. imagegif($im);
  21. imagedestroy($im);
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement