Database Systems Group6 Problem 1.8
Database Systems Group6 Problem 1.8
Task Breakdown:
1.Problem
● patient information contains identifiers, name, address, contact, insurance, department, doctor, etc.
● department information contains identifiers, name, building, experiment, etc.
● check information contains identifiers, patient, doctor, title, room, etc.
● doctor information contains identifiers, name, department, expertise, etc.
Several constraints need to be defined, at least patients belong to departments, doctors belong to departments,
departments possess checks and doctors perform checks on patients, patients are assigned to doctors, etc. This
system allows managers to perform multiple functions on patients, departments, checks and doctors using the
user interface.
2. ERD:
3.Database Schema
4.File Structure:
5.Homepage (including homepage.html)
This is the web page for interacting with the
user.
➢ <style>: the decoration coding:
background image, boxes, fonts, ...
1.2. Result:
Below are two sample results: first one for a single table (airline), second one for multiple tables.
➢ showdata.php
Here is the working of show data function:
Here is the result:
7.Searchdata
➢ Usage:
● Search data in one single table depending on the user's choice.
● Users can choose what attribute is used for the search.
➢ searchdata.html
<script>: jQuery code, for simple animations on the homepage.
➢ searchdata.php
Here is the working of search data function:
8.Update Function:
➢ Usage:
- Add, edit or delete data in one single table depending on the user's choice.
- Users can choose any attribute for the update.
➢ updatedata.html
<script>: jQuery code, for simple animations on the web.
❖ There is no delete for the patients, as the hospital archive all the data of any person who is treated there.
❖ There is no delete for the check patient, as the hospital archive all the data of any person who is treated there.
❖ There is no delete for the department table, as the hospital wants to expand more so that they (maybe) do not want
to delete any department
➢ update_result.php
//Table patient
//Table doctor
//Table check patient
//Table department
Here is the working of update data function: