Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stop serve ads when user balance low
01-19-2015, 04:01 PM, (This post was last modified: 01-19-2015, 04:06 PM by NEPSALONE.)
Post: #1
Stop serve ads when user balance low
Im using pranto's ad network script. Im getting problem in serve ad. How to pause ad automatic when user balance low
this code working or not help me
$owner=$adv["userid"];
$adsid=$adv["id"];
$ownerbal = $db->select("users","abal",array("id"=>$owner));
if($ownerbal["abal"]<0.25){
$db->update("ads",array("status"=>3),array("id"=>$adsid));
}

Here is click.php file


Attached Files
.php   click.php (Size: 15.03 KB / Downloads: 14)
Reply
01-21-2015, 12:38 AM,
Post: #2
RE: Stop serve ads when user balance low
try and see.
Reply
01-22-2015, 11:52 AM,
Post: #3
RE: Stop serve ads when user balance low
Not working coder please help me
Reply
01-23-2015, 10:25 PM,
Post: #4
RE: Stop serve ads when user balance low
Nothing can be said without knowing the structure of the code.. You must show the source code of $db (db class and functions codes such as select,update etc) to know whether the above code is right or not..
Reply
01-24-2015, 06:22 AM,
Post: #5
RE: Stop serve ads when user balance low
here is database file


Attached Files
.php   database.php (Size: 3.76 KB / Downloads: 6)
Reply
01-24-2015, 10:21 PM,
Post: #6
RE: Stop serve ads when user balance low
Share the script, so that we all can try to fix it... :p
Please Join @ http://www.ChatAddaz.Tk
Reply
01-26-2015, 05:50 PM,
Post: #7
RE: Stop serve ads when user balance low
Nobody can help me.! I fixed this problem myself
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)