battisti Posted October 23, 2009 Share Posted October 23, 2009 Im using the whmcs API to insert a client. The sample in the documentation is: $postfields["action"] = "addclient"; $postfields["firstname"] = "Cliente da Alkantara"; $postfields["lastname"] = "User"; $postfields["companyname"] = "WHMCS"; $postfields["email"] = "alkata@whmcs.cons"; $postfields["address1"] = "123 Demo Street"; $postfields["city"] = "Demo"; $postfields["state"] = "Florida"; $postfields["postcode"] = "AB123"; $postfields["country"] = "US"; $postfields["phonenumber"] = "123456789"; $postfields["password2"] = "demo"; $postfields["currency"] = "1"; BUT i need to insert to a client and put then in a group! ithe na of the fild in the database is groupid. i try put it in the vector but no work. $postfields["groupid"] = "2"; The groupid 2 existis in database but the API didn't insert this value on the field. Some idea? 0 Quote Link to comment Share on other sites More sharing options...
0 battisti Posted October 24, 2009 Author Share Posted October 24, 2009 Im using the whmcs API to insert a client. The sample in the documentation is: $postfields["action"] = "addclient"; $postfields["firstname"] = "Cliente da Alkantara"; $postfields["lastname"] = "User"; $postfields["companyname"] = "WHMCS"; $postfields["email"] = "alkata@whmcs.cons"; $postfields["address1"] = "123 Demo Street"; $postfields["city"] = "Demo"; $postfields["state"] = "Florida"; $postfields["postcode"] = "AB123"; $postfields["country"] = "US"; $postfields["phonenumber"] = "123456789"; $postfields["password2"] = "demo"; $postfields["currency"] = "1"; BUT i need to insert to a client and put then in a group! ithe na of the fild in the database is groupid. i try put it in the vector but no work. $postfields["groupid"] = "2"; The groupid 2 existis in database but the API didn't insert this value on the field. Some idea? i see in the source of the api and its not possible to insert others sources of client, a pity! 0 Quote Link to comment Share on other sites More sharing options...
Question
battisti
Im using the whmcs API to insert a client.
The sample in the documentation is:
$postfields["action"] = "addclient";
$postfields["firstname"] = "Cliente da Alkantara";
$postfields["lastname"] = "User";
$postfields["companyname"] = "WHMCS";
$postfields["email"] = "alkata@whmcs.cons";
$postfields["address1"] = "123 Demo Street";
$postfields["city"] = "Demo";
$postfields["state"] = "Florida";
$postfields["postcode"] = "AB123";
$postfields["country"] = "US";
$postfields["phonenumber"] = "123456789";
$postfields["password2"] = "demo";
$postfields["currency"] = "1";
BUT i need to insert to a client and put then in a group! ithe na of the fild in the database is groupid.
i try put it in the vector but no work.
$postfields["groupid"] = "2";
The groupid 2 existis in database but the API didn't insert this value on the field.
Some idea?
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.