Jump to content

WHMCS API problem


mdkhost

Recommended Posts

This is not a WHMCS API or even WHMCS related. This is a general mysql issue. Read the value and send it back with the new IP appended.

 

Here is some examples:

 

 

mysql> select value FROM `tblconfiguration` WHERE `setting` = 'APIAllowedIPs';

+---------------------------------------+

| value |

+---------------------------------------+

| 192.168.1.1

192.168.1.2

192.168.1.3 |

+---------------------------------------+

1 row in set (0.00 sec)

 

mysql> UPDATE tblconfiguration SET `value`='192.168.1.1\r\n192.168.1.2\r\n192.168.1.3\r\n192.168.1.4' WHERE setting='APIAllowedIPs';

Query OK, 1 row affected (0.00 sec)

Rows matched: 1 Changed: 1 Warnings: 0

 

mysql> select value FROM `tblconfiguration` WHERE `setting` = 'APIAllowedIPs';

+----------------------------------------------------+

| value |

+----------------------------------------------------+

| 192.168.1.1

192.168.1.2

192.168.1.3

192.168.1.4 |

+----------------------------------------------------+

1 row in set (0.00 sec)

 

mysql>

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