TABLE OF CONTENTS CHAPTER NO. TITLE PAGE NO. DECLARATION i ABSRACT ii ACKNOWLEDGEMENT iii 1. INTRODUCTION 1 1.1 Introduction to DBMS 4 1.2 Advantages of Using DBMS Approach 5 1.3 Architecture of Database 6 2. INTRODUCTION TO PROJECT 7 2.1 Brief Description 7 2.2 Scope 7 2.3 Table Description 8 2.3.1 Admin 8 2.3.2 Cashier 8 2.3.3 Ids 8 2.3.4 Invoice 9 2.3.5 Invoice_details 9 2.3.6 Pharmacist 9 2.3.7 Prescription 10 2.3.8 Reciept 10 2.3.9 Sales 10 2.3.10 Stock 11 2.3.11 Temppriscri 11 2.4 Triggers 12 2.5 Stored Procedure 13 3. DESIGN 14 3.1 Entity Relationship Diagram 14 3.2 Normalization 15 3.3 Schema Diagram 16 4. HARDWARE AND SOFTWARE REQUIREMENTS 17 4.1 Functional and non-functional requirements 17 iv 4.1.1 Functional or specific requirements 17 4.1.2 Non-functional Requirements 17 4.1.2.1 Security requirements 18 4.2 Hardware Requirements 18 4.3 Software requirements 18 4.3.1 Server side 18 4.3.2 Client side 18 4.3.1.1 PHP 19 4.3.1.2 Web Server: Apache 19 4.3.1.3 HTML 19 4.3.1.4 JavaScript 19 CONCLUSION 20 FUTURE ENHANCEMENTS 21 REFERENCES 22 APPENDIX ‘A’ – CODE SNIPPETS 23 A.1 Database Connection 24 A.2 Index Query 24 A.3 Select Query 24 A.4 Update Query 25 A.5 Delete Query 25 APPENDIX ‘B’ – SCREENSHOTS 26 B.1 Login Page 27 B.2 Admin Home Page 27 B.3 Admin_Pharmacist Page 28 B.4 Admin_Cashier Page 28 B.5 Pharamacist Home Page 29 B.6 Pharamacist_Prescription Page 29 B.7 Pharamacist_Stock Page 30 B.8 Cashier Home page 30 B.9 Cashier Payment Page 31 v LIST OF FIGURES FIG NO. TITLE PAGE NO. 1.1 Simplified database environment system 3 1.2 Architecture of DBMS 6 3.1 ER Diagram 14 3.2 Schema Diagram in 3rd normal form 16 A.1 Database Connection 24 A.2 Index Query 24 A.3 Select Query 24 A.4 Update Query 25 A.6 Delete Query 25 B.1 Login Page 27 B.2 Admin Home Page 27 B.3 Admin_Pharmacist Page 28 B.4 Admin_Cashier Page 28 B.5 Pharamacist Home Page 29 B.6 Pharamacist_Prescription Page 29 B.7 Pharamacist_Stock Page 30 B.8 Cashier Home page 30 B.9 Cashier Payment Page 31 vi LIST OF TABLES TABLE NO. TITLE PAGE NO. 2.3.1 Admin 8 2.3.2 Cashier 8 2.3.3 Ids 8 2.3.4 Invoice 9 2.3.5 Invoice_detail 9 2.3.6 Pharmacist 9 2.3.7 Prescription 10 2.3.8 Reciept 10 2.3.9 Sales 10 2.3.10 Stock 11 2.3.11 Temppriscri 11 vii