Multiple Sub ID Postback BLAMADS

by Rubyx
12 replies
Multiple Sub ID Postback BLAMADS,

Hi forum,

I created a website where users fill in a survey and than i get a postback from blamads that confirms the survey is filld in, but i need to get more info from the postback, now the sub_id is the users IP, that way i know that they filld in the survey but i also need 2 other IDs in the postback,

Example: ShareCash gets a User ID en a File ID in the postback.
and they are send back like this

User ID|||FileID
or: 938482|||59838

But i don't know how to post these in different columns

Also how do i script the vertical bar to put them in different columns in the database

Thank you.
#blamads #multiple #postback
  • Profile picture of the author act333
    You can delimit the parameters, so subid=data1|data2|data3, the when you use the API to read off the subid, you need to parse the field (ie.take out the |) into the 3 variables to work with.

    I don't understand the 2nd part of your question though.
    {{ DiscussionBoard.errors[5537491].message }}
    • Profile picture of the author Rubyx
      Originally Posted by act333 View Post

      You can delimit the parameters, so subid=data1|data2|data3, the when you use the API to read off the subid, you need to parse the field (ie.take out the |) into the 3 variables to work with.

      I don't understand the 2nd part of your question though.

      Nvm that, but how do i insert Data1 , data2 and data3 in different columns in my database?
      {{ DiscussionBoard.errors[5539262].message }}
    • Profile picture of the author Rubyx
      Originally Posted by act333 View Post

      You can delimit the parameters, so subid=data1|data2|data3, the when you use the API to read off the subid, you need to parse the field (ie.take out the |) into the 3 variables to work with.

      I don't understand the 2nd part of your question though.

      Nvm that 2nd part, but how do i insert Data1 , data2 and data3 in different columns in my database?

      thanks alot!
      {{ DiscussionBoard.errors[5539271].message }}
    • Profile picture of the author Rubyx
      Originally Posted by act333 View Post

      You can delimit the parameters, so subid=data1|data2|data3, the when you use the API to read off the subid, you need to parse the field (ie.take out the |) into the 3 variables to work with.

      I don't understand the 2nd part of your question though.
      i got like this script to insert the values of the postback in my database:
      mysql_query("INSERT INTO survey (sub_id, sub_id2, sub_id3) VALUES('".."', '".."', '".."') ON DUPLICATE KEY UPDATE '".."'='0'") or die(mysql_error());
      that's kinda what i need but how do i put data1 in column of sub_id en data2 in column of data2 etc..

      i cant figure it out,

      thanks for helping me out, i appreciate it alot
      {{ DiscussionBoard.errors[5539364].message }}
      • Profile picture of the author act333
        Originally Posted by Rubyx View Post


        that's kinda what i need but how do i put data1 in column of sub_id en data2 in column of data2 etc..
        Do you mean data2 in column of sub_id2?
        {{ DiscussionBoard.errors[5549275].message }}
        • Profile picture of the author Rubyx
          Originally Posted by act333 View Post

          Do you mean data2 in column of sub_id2?
          yes thats what i mean.
          {{ DiscussionBoard.errors[5555838].message }}
  • Profile picture of the author ChrisBa
    I'm not really sure on how to do this with blamads, but your best bet is to contact your AM, this is exactly what they are there for
    {{ DiscussionBoard.errors[5538355].message }}
  • Profile picture of the author Rubyx
    Thanks alot chris i submitted a ticket on blamads and try contact my AM but hes never on and it takes like a month to get a reply on my ticket

    But thanks alot!! really helpfull
    {{ DiscussionBoard.errors[5538809].message }}
  • {{ DiscussionBoard.errors[5553820].message }}
  • Profile picture of the author jaggyjay
    Hi Rubyx,

    Your question is programming related and you'll be hard-pressed to find the right kind of help here. Perhaps a more techy forum like tek-tips.com or stackoverflow.com will be a better fit.

    This is not to knock my fellow warriors. A lot on here are more than qualified to help - however, they probably will never see this post.

    By the way, if all your data is being received from Blam in a pike-delimited string (the pike looks like this '|' ) - then you can use the php function "explode" to break it into an array of strings. The pike will be automatically stripped out in this way. You can then store your data using the indices of your new array.

    Best,
    - Jay
    {{ DiscussionBoard.errors[5554000].message }}
    • Profile picture of the author Rubyx
      Okay Thanks all, i will find it out!

      Thanks alot for all the help
      {{ DiscussionBoard.errors[5555830].message }}
    • Profile picture of the author act333
      Originally Posted by jaggyjay View Post

      Hi Rubyx,

      Your question is programming related and you'll be hard-pressed to find the right kind of help here. Perhaps a more techy forum like tek-tips.com or stackoverflow.com will be a better fit.

      This is not to knock my fellow warriors. A lot on here are more than qualified to help - however, they probably will never see this post.

      By the way, if all your data is being received from Blam in a pike-delimited string (the pike looks like this '|' ) - then you can use the php function "explode" to break it into an array of strings. The pike will be automatically stripped out in this way. You can then store your data using the indices of your new array.

      Best,
      - Jay
      Yup, he provided that solution This is when you want to store multiple info into a subid so you can perhaps credit your subaff if you run an inventive site for eg.
      {{ DiscussionBoard.errors[5561422].message }}

Trending Topics