Incrementing the Costomer Number

Discussion in 'Installation/Configuration' started by CyberMaster, Apr 24, 2023.

  1. CyberMaster

    CyberMaster New Member

    I've written a .php script to intake a persons information and then add them as a Client user to ISPConfig.

    It works properly except when I send the variables to the server, not changing the costumer number field, the Costumer Number Field in ISPConfig is left blank.

    I can edit and add it manually by looking at the last number added but don't want to have to go behind every new user after registering, adding a new number.

    How can I automatically have the number added? Is there a function call I can add into my script to retrieve the current highest number and then add a 1 to it, then send the correct order of number for the new client creation? Other way?
     
  2. CyberMaster

    CyberMaster New Member

    Also, if I reuse a customer number that was previously deleted, but still in order, will it mess things up?
     
  3. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Have you read our API docs, I suspect you can find all necessary info there. By the way, the client number is not a required field.

    It should not, but I would not do this.
     
  4. CyberMaster

    CyberMaster New Member

    Grooovey! I just needed to Read The API Docs(I hadn't known about them but do now), pointed out by you and another cool person..

    Thank You! :)
     

Share This Page