$cash){ } else { $res = mysql_query("insert into user_spadv (userid, pkg, spadtext, spadurl, currentclicks, status) values ('$usrid', '$pkgid', '$imgurl2', '$url2', '0', 'Pending')"); } } if($submit == 'Place Banner Ad'){ if ($cost > $cash){ } else { $res = mysql_query("insert into user_advbanner (userid, pkg, banurl, siteurl, currenttimp, status) values ('$usrid', '$pkgid', '$imgurl2', '$url2', '0', 'Pending')"); } } if($submit == 'Place Text Ad'){ if ($cost > $cash){ } else { $res = mysql_query("insert into user_tads (userid, text, pkg, currentimp, status) values ('$usrid', '$text', '$pkgid', '0', 'Pending')"); } } $res = mysql_query("update user set dcash=dcash-$cost where id=$usrid"); if($pkgtype == 'sponsorad'){ $txt = "Your Sponsor Ad Was Added."; } elseif($pkgtype == 'banner'){ $txt = "Your Banner Was Added."; } elseif($pkgtype == 'textad'){ $txt = "Your Text Ad Was Added."; } echo("

$txt

Refresh

"); exit; } if ($csh==1){ $res = mysql_query("select * from adv_pkg where id=$pkg"); $cost = mysql_result($res, $i, "price"); $pkgtype = mysql_result($res, $i, "pkgtype"); if($pkgtype == 'sponsorad'){ $txt = "Place Sponsor Ad"; $txt2 = "Sponsor Ad Text"; } elseif($pkgtype == 'banner'){ $txt = "Place Banner Ad"; $txt2 = "Banner Url"; } elseif($pkgtype == 'textad'){ $txt = "Place Text Ad"; } if ($cost > $cash){ echo("

You don't have enough account cash to $txt!

"); } else { echo("

$txt

"); if($pkgtype == 'textad'){ echo(""); } echo("
Please Use (HTML):

<center><font face=verdana, arial size=3 color=blue><b>
<a href="http://e-topbiz.com">
Quality Scripts for sale. CGI/PHP scripts that will make you money!
</a></center>

"); } else { echo("
$txt2: *
Site Url: *



"); require('footer_inc.php'); exit; } } echo("
Buy Advertising
Note: Admin will activate your ads after payment verification. It may take up to 48 hours before you can see your ads in \"Active\" status.


"); echo("You currently have $$cash Account Cash.

"); $res = mysql_query("select * from adv_pkg order by id asc"); for ($i = 0; $i < mysql_num_rows($res); $i++){ $id = mysql_result($res, $i, "id"); $pkgname = mysql_result($res, $i, "pkgname"); $pkgtype = mysql_result($res, $i, "pkgtype"); $price = mysql_result($res, $i, "price"); $howmany = mysql_result($res, $i, "howmany"); if($pkgtype == 'sponsorad'){ $txt = "Total Clicks: $howmany"; } elseif($pkgtype == 'banner'){ $txt = "Total Banner Impression: $howmany"; } elseif($pkgtype == 'textad'){ $txt = "Total Text Ad Impression: $howmany"; } echo("
"); } echo("

Buy $pkgname
$pkgname
Price: $$price

$txt



"); tads(); require('footer_inc.php'); mysql_close; ?>