PHP page id or item id

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nite4000
Forum Contributor
Posts: 209
Joined: Sun Apr 12, 2009 11:31 am

PHP page id or item id

Post 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
User avatar
omniuni
Forum Regular
Posts: 738
Joined: Tue Jul 15, 2008 10:50 pm
Location: Carolina, USA

Re: PHP page id or item id

Post 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.
Post Reply