Client Server Design - WitsUpWesley/WitsUp GitHub Wiki
Whenever the user/client requests something from the database(such as their courses) or wants to update their courses, a request with the required variables is sent to the corresponding php file which is stored on the server (lamp). The php files then make the connection with the database and requests the required information or updates the requested information based on what the client wants. The DBMS(MySQL) then returns what is requested too the php which in turn returns the clients request to the app.