[help] Ethernet + Mysql + Web control

help me plz

I am doing a project Control led with Webside
but i have Code " Restar Arduino " and i have my code not loop get the value

sry for bad english :sob:

#include <SPI.h>
#include <Ethernet.h>

#define LED1 2
#define LED2 3
#define LED3 4
#define LED4 5
#define LED5 6
#define LED6 7
// Enter a MAC address for your controller below.
// Newer Ethernet shields have a MAC address printed on a sticker on the shield
byte mac[] = { 
  0x00, 0xAA, 0xBB, 0xCC, 0xDE, 0x02 };
IPAddress ip(192,168,1,101);
char server[] = "systemezcontrol.hol.es";
int id=1;
int count=1;
String data = "";
// Initialize the Ethernet client library
// with the IP address and port of the server 
// that you want to connect to (port 80 is default for HTTP):
EthernetClient client;

void setup() {
  pinMode(LED1, OUTPUT);  digitalWrite(LED1, LOW);
  pinMode(LED2, OUTPUT);  digitalWrite(LED2, LOW);
   pinMode(LED3, OUTPUT);  digitalWrite(LED3, LOW);
  pinMode(LED4, OUTPUT);  digitalWrite(LED4, LOW);
   pinMode(LED5, OUTPUT);  digitalWrite(LED5, LOW);
  pinMode(LED6, OUTPUT);  digitalWrite(LED6, LOW);
  // start the serial library:
  Serial.begin(9600);
  // start the Ethernet connection:
  Ethernet.begin(mac, ip);
  // give the Ethernet shield a second to initialize:
  delay(2000);

}

void loop()
{
  Serial.println("connecting...");

  // if you get a connection, report back via serial:
  if (client.connect(server, 80)) {
    Serial.println("connected");
    // Make a HTTP request:
    client.print("GET /home/Arduino-GET.php?id=");
    client.print(id);
    client.println(" HTTP/1.1");
    client.print("Host: ");
    client.println(server);
    client.println("Connection: close");
    client.println();
    delay(2000);
    char c;
    // go trough the responce. as the value we are looking for is in the end of the responce after this loop char c will contain the last char of the respoce, 0 or 1
    while (client.available()) {
      c = client.read();
      data = data + c;
    }
    Serial.print("ID =");
    Serial.println(id);
    Serial.print("Data = ");
    Serial.println(data);
    
     Serial.print("NumStatus = ");
     Serial.println(c);
    
    // if char c converted to an integer is somethning else than 0
    if (c == '1') {
          
          if(id == 1)
          {
            digitalWrite(LED1, LOW);
          }
          if(id == 2)
          {
            digitalWrite(LED2, LOW);
          }
          if(id == 3)
          {
            digitalWrite(LED3, LOW);
          }
          if(id == 4)
          {
            digitalWrite(LED4, LOW);
          } 
          if(id == 5)
          {
            digitalWrite(LED5, LOW);
          }
          if(id == 6)
          {
            digitalWrite(LED6, LOW);
          }  
        }
        else{
           
           if(id == 1)
           {
             digitalWrite(LED1, HIGH);
           }
           if(id == 2)
           {
             digitalWrite(LED2, HIGH);
           }
           if(id == 3)
          {
            digitalWrite(LED3, HIGH);
          }
          if(id == 4)
          {
            digitalWrite(LED4, HIGH);
          } 
          if(id == 5)
          {
            digitalWrite(LED5, HIGH);
          }
          if(id == 6)
          {
            digitalWrite(LED6, HIGH);
          }  
        } 
  
  } 
  else {
    // if you didn't get a connection to the server:
    Serial.println("connection failed");
    count++;
    if(count > 20)
    {
      
    }
  }
  
  
  id++;
  if(id > 6)
    {id = 1;}
  // if the server's disconnected, stop the client:
  if (!client.connected()) {
    Serial.println("disconnecting.");
    client.stop();
  }
  
  data = "";
    delay(1000);
}

First of all, remove all delays in your loop() . Having delay(2000) and delay(1000) means, that for 3 second, your arduino is doing nothing. So it can't capture response from the server.

And you need to parse your server response properly ! ID is a string of chars so how cany you tel if it's 5 o 6 or whatever ?