Using Yun shield to send sensor value to my cloud server database

Hello everyone,
I am working on a project with arduino uno and dragino YUN shield but I am not able to send data to the server , could someone help me here please

#include <Bridge.h>
#include <YunClient.h>
#include <DHT.h>

#define PORT 225

#define DHTPIN 2 // SENSOR PIN
#define DHTTYPE DHT11 // SENSOR TYPE - THE ADAFRUIT LIBRARY OFFERS SUPPORT FOR MORE MODELS
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;

// Define our client object
YunClient client;

void setup()
{
// Bridge startup
Bridge.begin();

Serial.begin(9600);

dht.begin();
delay(10000); // GIVE THE SENSOR SOME TIME TO START

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

data = "temp";

while (!Serial); // wait for a serial connection
}

void loop()
{

currentMillis = millis();
if(currentMillis - previousMillis > interval) { // READ ONLY ONCE PER INTERVAL
previousMillis = currentMillis;
h = (int) dht.readHumidity();
t = (int) dht.readTemperature();
}

data = "atemp=" + String(t) + "&ahum=" + String(h);
// Make the client connect to the desired server and port
IPAddress addr(,,0,118);

// Or define it using a single unsigned 32 bit value
// IPAddress addr(0xc0a8sab9); // same as 192.168.42.185

// Or define it using a byte array
//const uint8 addrBytes = {77,72,0,118};
//IPAddress addr(addrBytes);

client.connect(addr, PORT);

// Or connect by a server name and port.
// Note that the Yun doesn't support mDNS by default, so "Yun.local" won't work
// client.connect("ServerName.com", PORT);

if (client.connected())
{
Serial.println("Connected to the server.");

client.println("POST /add.php HTTP/1.1");
client.println("Content-Type: agri.techyardnepal.com");
client.print(data);

// Cheap way to give the server time to respond.
// A real application (as opposed to this simple example) will want to be more intelligent about this.
delay (250);

// Read all incoming bytes available from the server and print them
while (client.available())
{
char c = client.read();
Serial.print(c);
}
Serial.flush();

// Close the connection
client.stop();
}
else
{
Serial.println("Could not connect to the server.");

// Give some time before trying again
delay (10000);
}
if (client.connect(addr, 80)) {
client.print("GET /add.php?");
//Serial.print("GET /add.php?");
client.print("value="); // This
//Serial.print("value=");
client.print(data); // And this is what we did in the testing section above. We are making a GET request just like we would from our browser but now with live data from the sensor
//Serial.print(data);
client.println(" HTTP/1.1"); // Part of the GET request
//Serial.println(" HTTP/1.1");
client.println("Host: agri.techyardnepal.com"); // IMPORTANT: If you are using XAMPP you will have to find out the IP address of your computer and put it here (it is explained in previous article). If you have a web page, enter its address (ie.Host: "www.yourwebpage.com")
//Serial.println("Host: agri.techyardnepal.com");
client.println("Connection: close"); // Part of the GET request telling the server that we are over transmitting the message
//Serial.println("Connection: close");
client.println(); // Empty line
client.println(); // Empty line
client.stop(); // Closing connection to server

}

else {
// If Arduino can't connect to the server (your computer or web page)
Serial.println("--> connection failed\n");
}

// Give the server some time to recieve the data and store it. I used 10 seconds here. Be advised when delaying. If u use a short delay, the server might not capture data because of Arduino transmitting new data too soon.
delay(10000);

}

FSA6ST4HXB3V05E.ino (4.03 KB)