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

The connection at setup() doesn't seem to do anything so you can leave that at the moment.

I'm not sure why you still have embedded spaces here, for example:

client.print("&sensor2 = ");

Maybe it does not matter but if you have not put any spaces in the URL you type manually:

http://192.168.0.121/arduino/getdata.php?sensor1=91&sensor2=92&sensor3=93

Then it is best to leave these out.

No, I am not suggesting you attempt to include status.php in your code. I was just wondering why you posted it here since it is not (yet) used.

I can't see from the output if the values of sensor1, sensor2 or sensor3 got into the database. If they did, is your problem then solved ?