but i saw somewhere that it is possible to return a value on a GET request.
So i want to return a name from the database and prints this to a display
Anyone have an example on how to do this IF it is possible...?
but i saw somewhere that it is possible to return a value on a GET request.
Of course it is. That's what a GET request is for. It tells the server to send some data. Specifically what to send depends on the script being executed on the server.
So i want to return a name from the database and prints this to a display
There are three parts to this. First, the server actually has to return some data. Second, the Arduino needs to read the server's response. Third, the Arduino needs to print the data to the display.
Anyone have an example on how to do this IF it is possible...?
How to do what? Make the server actually serve up some data? Make the Arduino read the server's response? Make the Arduino print something to some unknown display?
The client example shows how to read a server response. We can't tell, from the snippet you posted, whether you modified that example, or developed something entirely different.
How do i return this data?
does it needs to be between special tags?
or does it just return the html value?
That would depend on the PHP script. Not really an Arduino issue, but PHP is commonly used (and I'm familiar with it) so you might get help with that part, if you posted the PHP code.
it a big copy paste project...
You should learn to write functions. Reading the RFID tag is something that belongs in a function. Dealing with the server belongs in a function.
Look back at the client example. It shows how to read the response from the server. You have a call to client.read() that throws away one character, then another call to client.read that reads one character. Neither call follows a client.available() call to assure that there is client data to read or a client.connected() call to assure that the connection to the server succeeded.