php get problem

best, I am fairly new to arduino. And now I want to give it a value ( 90 ) in the insert of my php. but I can not. Can you help me?

const char Url[] = "/arduino/insert.php?temp="; client.print("90");

thanks

You should post all your code, but try this first just to see if your sketch is working.

const char Url[] = "/arduino/insert.php?temp=90";
client.println(Url);

This works perfectly thx:-).

but I would like to have the 90 on a 2nd line. because I want to connect a temperature sensor

but I would like to have the 90 on a 2nd line. because I want to connect a temperature sensor

You can do that. What is the problem?

const char Url[] = "/arduino/insert.php?temp=";
client.print(Url);
client.println("90");

thanks for the help. but there is no value available in php - mysql database. When I use this code

thanks for the help. but there is no value available in php - mysql database. When I use this code

You need to post your real code. Specifically, make sure that the first part of the statement is sent using print(), not println(), and that the second part is sent using println(), not print().

char url[30];
snprintf(url, 30, "/arduino/insert.php?temp=%d", temp);
// Assuming temp is 90, the url will be '/arduino/insert.php?temp=90'

Defining a variable as "const" marks it as constant, so the value cannot be changed. You need it to be able to be changed for what you're trying to do.