PROBLEMING SENDING DATA FROM ARDIUNO TO MYSQL USING ETHERNET SHEILD

HI!

I AM FACING A PROBLEM WHILE SENDING DATA FROM ARDIUNO TO XAMPP (MYSQL),I WANT THAT DATA WHICH ARE SHOW ON THE SERIAL MONITOR SAME DATA STORE IN MY DATABASE

I AM USING ARDIUNO,ETHERNET SHEILD,THE CONNECTION IS SUCCESSFULLY DONE , I CAN INSERT THE VALUE MANUALLY IN THE DATABASE BUT I CANNOT INSERT VALUE AUTOMATICALLY

PLZ HELP ME

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


byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192, 168, 1, 10 ); //Enter the IP of ethernet shield
char server[] = "192, 168, 1, 11" ; //Enter the IPv4 address
EthernetClient client;
void setup() {
Ethernet.begin(mac, ip);
Serial.begin(9600); //setting the baud rate at 9600
Serial.println(Ethernet.localIP());
}

void loop() {
int soil_moisture = analogRead(A0);

Serial.print(soil_moisture);

 if (client.connect(server, 8080)) { //Connecting at the IP address and port we saved before
Serial.println("connected");
client.print("GET /soil_moisture/data1.php? "); //Connecting and Sending values to database
client.print("soil");
client.print(soil_moisture);
client.print("HTTP/1.1");
//client.print(" ");
client.stop(); //Closing the connection

//printing the value on the serial monitor
Serial.print("soil=");
Serial.println(soil_moisture);
}
else {
// if you didn't get a connection to the server:
Serial.println("connection failed");
}
delay(10000);
}

CONNECTION.PHP

<?php
$username = "soil_moisture";
$pass = "123";
$host = "localhost";
$db_name = "soil_moisture";
$con = mysqli_connect ($host, $username, $pass);
$db = mysqli_select_db ( $con, $db_name );
?>
<?php
include ('connection1.php');
$sql_insert = "INSERT INTO soil_moisture.data (soil_moisture) VALUES ('".$_GET["soil_moisture"]."')";

if(mysqli_query($con,$sql_insert))
{
echo "Done";
mysqli_close($con);
}
else
{
echo "error is ".mysqli_error($con );
}
?>
<?php
$url=$_SERVER['REQUEST_URI'];
header("Refresh: 5; URL=$url"); // Refresh the webpage every 5 seconds
?>
<html>
<head>
<title>Arduino soil moisture Database</title>
<style type="text/css">
.table_titles {
padding-right: 20px;
padding-left: 20px;
color: #000;
}
.table_titles {
color: #FFF;
background-color: #0000FF;
}
table {
border: 2px solid #333;
}
body { font-family: "Trebuchet MS", Courier; }
</style>
</head>
<body>
<h1>Arduino Data Logging to Database</h1>
<table border="0" cellspacing="0" cellpadding="4">
<tr>
<td class="table_titles">ID</td>
<td class="table_titles">Date and Time</td>
<td class="table_titles">soil_moisture</td>
</tr>
<?php
include('connection1.php');
$result = mysqli_query($con,'SELECT * FROM data ORDER BY id DESC');
// Process every record
$oddrow = true;
while($row = mysqli_fetch_array($result))
{
if ($oddrow)
{
$css_class=' class="table_cells_odd"';
}
else
{
$css_class=' class="table_cells_even"';
}
$oddrow = !$oddrow; 
echo "<tr>";
echo "<td '.$css_class.'>" . $row['id'] . "</td>";
echo "<td '.$css_class.'>" . $row['event'] . "</td>";
echo "<td '.$css_class.'>" . $row['soil_moisture'] . "</td>";
echo "</tr>"; 
}
 
// Close the connection
mysqli_close($con);
?>
</table>
</body>
</html>

PLZ HELP ME

When you stop shouting...

char server[] = "192, 168, 1, 11" ; //Enter the IPv4 address

That is NOT the name of your server. If you want to use an IP address, store it in the proper type - IPAddress.

I AM NEW IN PROGRAMMING ,

PAULS YOU MEAN THAT I SHOULD WRITE THE NAME OF SERVER

I AM USING LOCALHOST SHOULD I WRITE THAT

I AM USING LOCALHOST SHOULD I WRITE THAT

NO, YOU ARE NOT USING LOCALHOST.

LOCALHOST is the name to use when the client and server are running on the same machine. Your client and your server are NOT running on the same machine.

If you don't KNOW your server's name, you can NOT access it by name. If you don't know its IP address, you can't access it by IP address. If you don't know either one, you can't access it.