Thank you for your quick response. Only my problem is that I had to enter the Webinterface only the names and which were directly online. With the Id, I knew only how I put it into the script I do not know unfortunately since I control it by mysql here is a picture of the design
https://img4.picload.org/image/ropwlidl/twi.png 