Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $db_host = "localhost";
- $db_user = "root";
- $db_pass = "DBPASS";
- $db_name = "minecraft2";
- $db = mysql_connect($db_host,$db_user,$db_pass);
- mysql_select_db ($db_name) or die ("Cannot Connect To Database");
- $query = "SELECT * FROM users";
- $one = mysql_query($query);
- $two = mysql_num_rows($one);
- $users = $two. " Users";
- header("Content-type: image/gif");
- $calc = $topics;
- $im = imagecreatefromgif("sig.gif");
- $color = imagecolorallocate($im, 0,12,47);
- $txt2 = (imagesx($im) - 2 * strlen($calc)) / 2;
- imagestring($im, 3, $txt2, 55, $users, $color);
- imagegif($im);
- imagedestroy($im);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement