SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: how to edit row

  1. #1
    SitePoint Guru
    Join Date
    Oct 2004
    Location
    uk
    Posts
    853
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to edit row

    Hi guys

    When a user signs up there details are stored in the database, they are then taken to paypal where they make payment, after payment it notify ipn

    What I want to do is update the user row, but as they are not logged in I cant use the session id, and I cant seem to use mysql_insert_id() as it is on a different page, If anyone can help I would be very thankful

  2. #2
    ✯✯✯ silver trophybronze trophy php_daemon's Avatar
    Join Date
    Mar 2006
    Posts
    5,284
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Well since ipn posts data back to your script on its own, it's totally unrelated to user session. The only way perhaps to do it is to pass the id through a custom data field to paypal during the payment. The ipn will post that back and you'll be able to act on db having the correct id.
    Saul


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •