Jump to content

Need Help | Database Duplicates?


echo-tech

Recommended Posts

Hi,

 

I'm using the following command for my paypal IPN:

mysql_query("INSERT INTO `orders` (`id`, `user_id`, `user_name`, `package`, `date`, `exp_date`) VALUES (NULL, '1', 'demo', 'package1', 'NOW()', '{$newdate}')");

I've already assigned the variables and that all works. However, everytime this PayPal IPN script operates, it inserts the row into the database around 21 times? Sometimes it's 26, but sometimes it's 21 etc..

 

Any idea why? As far as I'm aware there is nothing looping on the system..

 

Regards,

Echo-tech

Link to comment
Share on other sites

Nope it's not in a loop, it just includes connect.php which is my database connection information and that's been tested and works fine, this is just through PayPal's PHP IPN, so if complete == 1 then it executes the above script, however it's importing loads of rows into the instead of just one. 

Edited by echo-tech
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.