Send data to MySQL (Arduino Uno, Eth shield W5100, IR obstacle sensor) [solved]

OK. Look very carefully at the example at https://www.arduino.cc/en/Tutorial/WebClient

From what I can see, try changing:

client.println("HTTP/1.1");

to:

client.print(" HTTP/1.1");  // note first space  and print instead of println

Also remove the embedded spaces here and similar:

client.print("&sensor2 = ");   // should be "&sensor2="

If it still does not work, post your code here again.