number 1
This is in editproduct and is tied in with number 3 below
Code:
Content visible to verified customers only.
number 2
I dont see an issue here unless the price is empty in your classifieds table
$query = "UPDATE {$Globals['pp_db_prefix']}stats SET amt_sold=(amt_sold+$curprice), ads_sold=(ads_sold+1) WHERE id=1";
number 3
I again dont see how you would get an error unless the userid was empty for this product. This is in editproduct.php and here is the code. I have bolded the userid so it is there.
Code:
Content visible to verified customers only.
I guess one suggestion I would make would be to encapsulate in the queries $thisuser to say '$thisuser' so it does not throw an error in email but I wonder why the userid variable coming from the database would be EMPTY. You follow me here. Most of the errors your reporting is we grab the userid from the database for the product in question and issue an UPDATE OR INSERT on the variables we define from the query.