http://www.paypaltech.com/SG2/
Best thing to do is have the IPN script add the information to a MySQL database. This site provides a good template IPN script that will do everything you want - once you're comfortable with what you're looking at, you can always modify/rewrite how you'd like things to work out.
Wherever you put the script, you have to tell PayPal where it is at so it can post the information to the script on your server.
Let me know if you have any questions!
Best thing to do is have the IPN script add the information to a MySQL database. This site provides a good template IPN script that will do everything you want - once you're comfortable with what you're looking at, you can always modify/rewrite how you'd like things to work out.
Wherever you put the script, you have to tell PayPal where it is at so it can post the information to the script on your server.
Let me know if you have any questions!