Reading data from SQL with ethernet module(enc28j60)

I need to ensure data flow in SQL using the ethernet module of this program.

//Communication protocol : For mode state in binary; 77-> AUTOMATIC, 78->MANUEL, 79 → UNKNOWN STATE
//Communication protocol : For counting state; 67-> add +1 to counting

#define pinManuel A0
#define pinAutomatic A1
#define pinMengeneStart A3

enum machineState { automatic = 0, manuel = 1, unknown = 2 };

machineState retVal;

static unsigned int voltageThresh = 805;
static unsigned int voltageMax = 1123;

unsigned int uinPulseCounter;
unsigned int uinTimeDifference;
unsigned int uinOldTime;
unsigned int uinFirstTime;

float fMengeneVal;
bool mbSignalState;
char ModeState;
char CountSend;
bool mbTimerRun;

void setup()
{

//Start with unknown mode
retVal = unknown;

//Set mode state with char
ModeState = { ‘M’ };

//Set sending protocol to ‘C’
CountSend = { ‘C’ };

//Timer run false
mbTimerRun = false;

//Start communication
Serial.begin(57600);

}

void loop()
{

fMengeneVal = analogRead(pinMengeneStart);

if (fMengeneVal >= voltageThresh && fMengeneVal < voltageMax)
{
Serial.print(CountSend);
Serial.print("\n");
Serial.print(ModeState + CheckWhichMode());
Serial.print("\n");
// Serial.print(“Mengene Volt:”);
//Serial.print(fMengeneVal);
//Serial.print("\n");

CountPulse();
Serial.print(“Ürün Sayısı:”);
Serial.print(uinPulseCounter);
Serial.print("\n");

}

}

int CheckWhichMode()
{
float manuelVal = analogRead(pinManuel);
float automaticVal = analogRead(pinAutomatic);

if ( manuelVal < voltageMax && manuelVal >= voltageThresh )
{
retVal = manuel;
return retVal;
}
else if ( automaticVal < voltageMax && automaticVal >= voltageThresh )
{
retVal = automatic;
return retVal;
}
else
{
retVal = unknown;
return retVal;
}

}

void CountPulse()
{
uinFirstTime = millis();
mbSignalState = true;

uinFirstTime = uinFirstTime - uinOldTime;

Serial.print(“Enjeksiyon süresi:”);
Serial.print(uinFirstTime);
Serial.print("\n");
uinFirstTime = millis();

while (mbSignalState)
{
delay(10);
if (analogRead(pinMengeneStart) < voltageThresh) {
mbSignalState = false;
}
}
uinOldTime = millis();

uinTimeDifference = uinOldTime - uinFirstTime ;
{

fMengeneVal = analogRead(pinMengeneStart);

// Serial.print(“Mengene Volt:”);
//Serial.print(fMengeneVal);
//Serial.print("\n");

Serial.print(“Robot çevrimi:”);
Serial.print(uinTimeDifference);
Serial.print("\n");

uinPulseCounter++;
}

}

I would appreciate if you help…