View Single Post
Old October 25th, 2005, 11:29 AM   #12 (permalink)
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,947
There is only one query which subtracts and rightfully so that is RESELL and resell is only displayed if SOLD was been clicked which means status is above 0 and SOLD increases your ad stats. So RESELL does this.

$query = "UPDATE {$Globals['pp_db_prefix']}stats SET amt_sold=(amt_sold-$price), ads_sold=(ads_sold-1) WHERE id=1";
$resultc = ppmysql_query($query,$link);

I have looked as stated up down and sideways and I see no bug. If you hit SOLD the amount is added and if you hit RESELL the amount is subtracted
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote