简体   繁体   中英

insert a row after payment with paypal and IPN

it's a simple question no code needed, I'm usign IPN and paypal and it's working fine, what i want to do and i can't seem to find the way to it's getting information from a table to insert it into an other from the IPN file.Let me explain bettet with an example:

I click the button , go to the paypal page, I pay, the IPN file gets called, the payment_status is completed, good, now i want to get data from a table where the ID of a row in that table is = to the user that's logged in and then get that information to insert it into another table.This from the IPN.php file

if($payment_status=='Completed')
{$query="select * from table where id=$_SESSION['login']"}

well this..doesn't work

Check the value of login and make sure it is what you expect. My first impression is that that variable is incorrect, however the question is vague enough I can't really answer. :(

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM