sending data from mysql via php to arduino

PaulS,

i guess you are referring to the second condition client.available(), but it doesn't work either. If using:

int readSessionId() {
client.stop();
char idSes=0;
if (client.connect(serverObj, port)) { // connection to the SERVER address and PORT specified
Serial.println("\nConnected to the server!");
client.println("GET /AWSR/retrySessionID.php HTTP/1.1");
if (client.connected() && client.available()) {
char c = client.read();
Serial.print("session id received: ");
Serial.print(c); // to see the value
}
idSes=client.read();
Serial.print("session id received: ");
Serial.println(idSes);

} else { Serial.println("\nFailed when connecting to the server");}
int temp=idSes - '0';
client.stop();
return temp;
}

what I see through the terminal is:

Connected to the server!
session id received: ΓΏ

So it seems it doesn't get into the loop...i don't know why...