Page 1 of 1

PHP page id or item id

Posted: Thu Jul 23, 2009 2:31 pm
by nite4000
Hey eeryone. I have a task which I am doing that has me stuck and wanted to see if i culd get some idea of how to complete it.

OK here is what I have so far.

I have a coupon site now I have a table called coupon_users which will list all users with coupons and the fields are co_id which is the coupon id from coupon table,mem_id which is the id from user table and email from user table.

id,co_id,mem_id,email

Now when they complete a purchase it sends them to a thankyou page and on the page i have it set so it insert the info into the table coupon_users i can get everything except the co_id I need to find a way to see which coupn they purchased and have it put that id of the coupon into the co_id field.

They can pay from STP,AP and strictpay.


ANy idea would help out.

Thanks

Re: PHP page id or item id

Posted: Thu Jul 23, 2009 4:11 pm
by omniuni
What you'll probably need to do is have the various paying services send the user after a successful pay back to a page along with some GET or POST data which you can then process.