简体   繁体   English

在使用Paypal和IPN付款后插入一行

[英]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: 这是一个简单的问题,不需要代码,我使用IPN和Paypal,并且工作正常,我想做什么,我似乎找不到从表中获取信息以将其插入到另一个表中的方法。 IPN文件。让我用一个例子来解释bettet:

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 我单击按钮,转到贝宝页面,我付钱,调用了IPN文件,payment_status完成,很好,现在我想从表中获取数据,其中该表中某行的ID为=登录,然后获取该信息以将其插入到另一个表中。这来自IPN.php文件

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. 我的第一印象是该变量不正确,但是问题很模糊,我无法真正回答。 :( :(

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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