Arduino ethernet webclient php script and mysql

What zoomkat was doing was stopping the Arduino from doing anything (with that infinite loop) if there was no client connected. Not sure exactly why.

But, you want to remove that infinite loop, and add an else clause (that gets executed if there IS a client connected.

if(!client.connected())
{
   client.stop();
}
else
{
   // There IS a client connected. Handle the client...
}