I have a client and a server - the client sends the server a message, and depending on what message is sent, the server will perform an action and then reply to the client.
Most of the actions that I have implemented are working.
I need help with one of the actions though - The client will send the server a request.
The server has to query a database and then return the results to the client.
Is it possible to send a resultset from the server to the client?
If so, what function will I use, and if not, what is the best way to send the information back to the client?