Cant'get data from Arduino Ethernet, php, mysql

I am trying to get data from Arduino ethernet, from sensor of temperature and humidity and put into a db.
Have xampp, local server.

#include <DHT.h>
#include <Ethernet.h>
#include <SPI.h>

byte mac[] = { 0x00, 0xAA, 0xBB, 0xCC, 0xDE, 0x01 }; 
EthernetClient client;

#define DHTPIN 2 // SENSOR PIN
#define DHTTYPE DHT22 
DHT dht(DHTPIN, DHTTYPE);

long previousMillis = 0;
unsigned long currentMillis = 0;
long interval = 250000; // READING INTERVAL

int t = 0;  // TEMPERATURE VAR
int h = 0;  // HUMIDITY VAR
String data;

void setup() { 
  Serial.begin(115200);

  if (Ethernet.begin(mac) == 0) {
    Serial.println("Failed to configure Ethernet using DHCP"); 
  }

  dht.begin(); 
  delay(10000); 

  h = (int) dht.readHumidity(); 
  t = (int) dht.readTemperature(); 

  data = "";
}

void loop(){

  currentMillis = millis();
  if(currentMillis - previousMillis > interval) {
    previousMillis = currentMillis;
    h = (int) dht.readHumidity();
    t = (int) dht.readTemperature();
  }

  data = String("temp1=") + t + "&hum1=" + h;

  if (client.connect("192.168.0.11",80)) { // Adress of my machine
    client.println("POST localhost/Estacion_meteorologica/add.php HTTP/1.1"); 
    client.println("Host: 192.168.0.11"); 
    client.println("Content-Type: application/x-www-form-urlencoded"); 
    client.print("Content-Length: "); 
    client.println(data.length()); 
    client.println(); 
    client.print(data); 
  } 

  if (client.connected()) { 
    client.stop();  // DISCONNECT FROM THE SERVER
  }

  delay(300000); // WAIT FIVE MINUTES BEFORE SENDING AGAIN
}

This is my php code where i insert the data:

add.php

   	$link=Connection();

	$temp1=$_POST["temp1"];
	$hum1=$_POST["hum1"];

	$query = "INSERT INTO `tempLog` (`temperature`, `humidity`) 
		VALUES ('".$temp1."','".$hum1."')"; 
   	
   	mysql_query($query,$link);
	mysql_close($link);

   	header("Location: index.php");

What message is the server returning to the Arduino?

sorry for the dilay.
i have to change the ip, now connect ok.
but server side dont recive any data

this is the message:

Attempting to get an IP address using DHCP:
My address:192.168.2.101
connected…
ARDUINO: forming HTTPs request message
22
ARDUINO: HTTP message sent
ARDUINO: HTTP message received
ARDUINO: printing received headers and script response…

HTTP/1.1 200 OK
Date: Sun, 27 Sep 2015 07:23:45 GMT
Server: Apache/2.4.12 (Win32) OpenSSL/1.0.1l PHP/5.6.8
X-Powered-By: PHP/5.6.8
Content-Length: 217
Connection: close
Content-Type: text/html; charset=UTF-8

Notice: Undefined index: temp1 in C:\xampp\htdocs\send\test.php on line 2

Notice: Undefined index: hum1 in C:\xampp\htdocs\send\test.php on line 3

It appears you are not assigning values to your variables correctly. Send the POST string to the serial monitor to insure it looks ok before sending it to the php page.

  data = String("temp1=") + t + "&hum1=" + h;
  Serial.println(data);

Thanks!

I see this in serial monitor:

temp1=24&hum1=50

    client.println(data.length());
    client.println();
    client.print(data);

The last line is missing a carriage return and line feed. Use println(), not print(), to send the data.

HTTP defines the linebreaks in the header as “\r\n”. I am not quite sure what the arduino print is issuing, but although many servers might even accept a “\n” as well, I suggest defining this manually by using client.print(F(“header: value\r\n”)).
You should put a proper URI into the POST request (“POST /folder/to/file.php”). Your serial output does not match the first pasted code fragments.
I do not think that the request requires a final linebreak. You very want to flush the data at end if writing.
Depending on the Ethernet library, this may unfortunately not be implented.

If everything fails, try further debubbing the php script by printing more server variables. Wireshark may also help digging into actual traffic.