I have a project to do based on a client / server application that I have to create. The client must send a request to the server which must then access information from a (SQL) database and send it back to the client, which must then be displayed in a table on a GUI.
I'm really unsure of how to access the information from the database and send it back to the client and display it... Maybe I just don't get the whole client / server thing. I don't know where to put the database requests etc... I'm really new to this. Please help!!!
Client / Server Application
Started by NikkiRae, Oct 04 2007 10:33 AM
2 replies to this topic
#1
Posted 04 October 2007 - 10:33 AM
|
|
|
#2
Posted 04 October 2007 - 08:57 PM
You've to do some networking. The server is like a storekeeper, and the client is like a customer. The customer walks into the store, and ask for a bread. Then the storekeeper will go and find some bread, and give it to the client.
The client connects to the server, and sends a message. Then the server will handle the message and find the right respond, which it will then send back to the client.
As you here, it's pretty logically. In your case it's not just a bread nor message you've to handle, but a SQL-request. So your server will get the SQL-request, and then the server will contact the SQL-server.
The client connects to the server, and sends a message. Then the server will handle the message and find the right respond, which it will then send back to the client.
As you here, it's pretty logically. In your case it's not just a bread nor message you've to handle, but a SQL-request. So your server will get the SQL-request, and then the server will contact the SQL-server.
#3
Posted 11 October 2007 - 03:13 PM


Sign In
Create Account

Back to top









