I can follow you idea, but since I'm not that good to scripting I do not know where the smartest places is to place
mysql_insert("INSERT INTO `znote_paypal` VALUES ('', '0', 'ERROR: Debugging message here', '0', '0', '0')");
So that I'm sure it's the real function bug I have found and not one I...