Helow Friends
if u want to add dynamic banner in ur ptc site
which will show Members Payments, Site Hits, Balance e.t.c
Demo:-

Go to Cpanel in public_html
create new file name as banner.php
add this code and save it
<?php
$id=$_GET['u'];
include("config.php");
include("includes/mysql.php");
$Db1 = new DB_sql;
$Db1->connect($DBHost, $DBDatabase, $DBUser, $DBPassword);
$specialPTP=true;
$members = mysql_fetch_assoc(mysql_query('SELECT COUNT(userid) AS total FROM user'));
$user = mysql_fetch_assoc(mysql_query('SELECT username,referral_earns FROM user WHERE userid=\''.$id.'\''));
$amount = mysql_fetch_assoc(mysql_query("SELECT SUM(amount) AS total FROM payment_history WHERE username='".$user['username']."' and status=1"));
$stats = mysql_fetch_assoc(mysql_query('SELECT new_members, hits, clicked FROM stats WHERE date=\''.date('d\/m\/y').'\''));
$totalpaid = mysql_fetch_assoc(mysql_query('SELECT SUM(amount) AS total, COUNT(amount) AS amount FROM payment_history WHERE status != 2'));
$xImg = ImageCreateFromJPEG('elite.jpg');
$col = imagecolorallocate($xImg, 255, 255, 255);
imagestring($xImg, 3, 200, 5, 'User: '.$user['username'], $col);
imagestring($xImg, 3, 200, 18, 'Members: '.$members['total'], $col);
imagestring($xImg, 3, 200, 31, 'Paid Out: '.$totalpaid['total'], $col);
imagestring($xImg, 3, 200, 44, 'Payouts Made: '.$totalpaid['amount'], $col);
imagestring($xImg, 3, 350, 5, 'Received: '.$amount['total'], $col);
imagestring($xImg, 3, 350, 18, 'New Members: '.$stats['new_members'], $col);
imagestring($xImg, 3, 350, 31, 'Hits: '.$stats['hits'], $col);
imagestring($xImg, 3, 350, 44, 'Clicks: '.$stats['clicked'], $col);
header('Content-type: image/jpeg');
mysql_close();
imagejpeg($xImg, NULL, 100);
?>
than go to members > banners.php
edit it and add
on line number 6 or where u want to add banner
"
http://www.$settings[domain_name]/banner.php?u=".$thismemberinfo['userid']
now make ur banner and rename it to elite.jpg
upload it to public_html
Done
Your Dynamic Banner Is Ready

Best Regards,
Waqar-Ali
http://goldclix.info