Ok, we have followed the step you suggested above, and tested the system again
When our test subject bought a subscription he recieved this error:
"Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in HOMEDIR/payment_verification.php on line 55"
The whole of line 55 is below
" list( $adid, $admount, $subid, $subuser, $subname, $subgroup, $subdays ) = mysql_fetch_row($rows);"
the "$rows" variable in line 55 is below
" $rows = ppmysql_query("SELECT p.id,p.amount,p.sub_id,p.user_id,s.name,s.gid,s.days
FROM {$Globals['pp_db_prefix']}payments p
LEFT JOIN {$Globals['pp_db_prefix']}subscriptions s ON s.id=p.sub_id
WHERE p.ad_key='$item_number'", $link);
"
Now after the user registers, it appears that nothing is entered into the database at all.
Please advise
also - what is "ppmysql_query"? i have never heard of this.