Jump to content

Help me for SQL query about affiliate


VolcanNET

Recommended Posts

On 8/17/2020 at 3:06 PM, Kian said:

INSERT INTO `tblaffiliatesaccounts` (`affiliateid`, `relid`, `lastpaid`) VALUES ('{USER_ID}', '{PRODUCT_ID}', '0000-00-00')

 

Thank you! 

Is it enough to create an entry in the affiliatesaccounts table? Or there is a ready-made function, for example, as in WHMCS (admin area) I noticed a query:

jQuery("#affiliatefield").html(jQuery("#affid option:selected").text()); jQuery("#modalAffiliateAssign").modal("hide"); WHMCS.http.jqClient.post( "orders.php", { action: "affassign", orderid: 307, affid: jQuery("#affid").val(), token: "" } );

Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated