├── dental ├── editinfo.php ├── admin.jpg ├── recep.jpg ├── dental02.jpg ├── dental1.jpg ├── download.png ├── index1.jpg ├── Untitled-3.jpg ├── connect-mysql.php ├── loginpage.php ├── index1.html ├── index.html ├── appointement.css ├── index.css ├── admin.php ├── cliniceditadmin.css ├── clinicinfo.css ├── dentisteditadmin.css ├── dentistuser.css ├── patienteditadmin.css ├── viewappointment.css ├── dentalcodesviewuser.css ├── confirmappoint.css ├── index1.css ├── adminregview.css ├── login.css ├── signup.css ├── clinic.css ├── dentalcodes.css ├── dentist.css ├── adminreg.css ├── dropdown.php ├── adminreg.php ├── admin.css ├── adminregview.php ├── dentistuser.php ├── dentalcodesviewuser.php ├── patientinfo.php ├── editdental.php ├── confirmappoint.php ├── clinicinfo.php ├── cliniceditadmin.php ├── viewappointment ├── viewappointment.php ├── patienteditadmin.php ├── dentalcodes.php ├── delete.php ├── deletedentist.php ├── deleteappoint.php ├── dentisteditadmin.php ├── login.php ├── edit_appointinfo.php ├── edit_status.php ├── editcode.php ├── clinic.php ├── staff.php ├── appointement.php ├── edit_clinicinfo.php ├── edit_patientinfo.php ├── dentist.php ├── signup.php ├── edit_info ├── edit_dentistinfo.php └── edit_info.php ├── README.md └── dentalclinic.sql /dental/editinfo.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dental/admin.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sumit-narang/Dental-clinic-management-system/HEAD/dental/admin.jpg -------------------------------------------------------------------------------- /dental/recep.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sumit-narang/Dental-clinic-management-system/HEAD/dental/recep.jpg -------------------------------------------------------------------------------- /dental/dental02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sumit-narang/Dental-clinic-management-system/HEAD/dental/dental02.jpg -------------------------------------------------------------------------------- /dental/dental1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sumit-narang/Dental-clinic-management-system/HEAD/dental/dental1.jpg -------------------------------------------------------------------------------- /dental/download.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sumit-narang/Dental-clinic-management-system/HEAD/dental/download.png -------------------------------------------------------------------------------- /dental/index1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sumit-narang/Dental-clinic-management-system/HEAD/dental/index1.jpg -------------------------------------------------------------------------------- /dental/Untitled-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sumit-narang/Dental-clinic-management-system/HEAD/dental/Untitled-3.jpg -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | This project uses several languages such as : 2 | Front-end: html,css 3 | backend: php 4 | database used: mysql 5 | 6 | This project requires server, please make sure to import dentalclinic.sql in your mysql database before openning index.html file in dental folder. 7 | -------------------------------------------------------------------------------- /dental/connect-mysql.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dental/loginpage.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |

Login

4 |
5 |

6 |

8 | 9 |

10 | 12 | 13 |

14 |
15 |
16 |
-------------------------------------------------------------------------------- /dental/index1.html: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |

Dental Clinic

13 | 14 | Logout 15 | 16 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /dental/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |

Dental Clinic

10 | 11 | 12 | 13 | 14 |
15 | Login 16 | Sign Up 17 |
18 | 19 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /dental/appointement.css: -------------------------------------------------------------------------------- 1 | .logo{ 2 | position: absolute; 3 | margin-left: 20px; 4 | font-family: 'Roboto', sans-serif; 5 | font-size: 0.8em; 6 | top: 20px; 7 | } 8 | .logotext{ 9 | position: absolute; 10 | margin-left: 65px; 11 | top: 20px; 12 | font-family: 'Roboto', sans-serif; 13 | font-size: 0.8em; 14 | color: black; 15 | } 16 | .logotext:visited{ 17 | color: black; 18 | } 19 | .logotext:hover{ 20 | color: black; 21 | } 22 | .form{ 23 | position: absolute; 24 | font-family: 'Lato', sans-serif; 25 | margin-top: 50px; 26 | margin-left: 8%; 27 | 28 | padding: 160px 400px; 29 | } 30 | #submit{ 31 | 32 | 33 | background-color: #1984f1; 34 | padding: 10px 20px; 35 | color: white; 36 | border-style: none; 37 | border: collapse; 38 | } 39 | #submit:hover{ 40 | 41 | background-color: #4197ee; 42 | } 43 | .page{ 44 | position: absolute; 45 | top: 85px; 46 | margin-left: 39%; 47 | color: black; 48 | font-family: 'Lato', sans-serif; 49 | } -------------------------------------------------------------------------------- /dental/index.css: -------------------------------------------------------------------------------- 1 | .midimg{ 2 | position: absolute; 3 | top: 70px; 4 | left: 30px; 5 | 6 | } 7 | .register{ 8 | position: absolute; 9 | right: 10px; 10 | top:26px; 11 | 12 | } 13 | .log{ 14 | margin-right: 30px; 15 | text-decoration: none; 16 | font-family: 'Lato', sans-serif; 17 | font-size: 1em; 18 | color:black; 19 | } 20 | .log:hover{ 21 | text-decoration: underline; 22 | } 23 | .link{ 24 | position: absolute; 25 | bottom: 80px; 26 | left: 70px; 27 | 28 | } 29 | .sublink{ 30 | margin-left: 190px; 31 | text-decoration: none; 32 | font-family: 'Lato', sans-serif; 33 | font-size: 1.2em; 34 | background-color: #1984f1; 35 | padding: 10px 19px; 36 | color: white; 37 | } 38 | .sublink:hover{ 39 | text-decoration: none; 40 | background-color: #4197ee; 41 | } 42 | .logotext{ 43 | position: absolute; 44 | top: 4px; 45 | margin-left: 48px; 46 | font-family: 'Lato', sans-serif; 47 | color: black; 48 | } 49 | .top{ 50 | 51 | margin-left: 17px; 52 | } -------------------------------------------------------------------------------- /dental/admin.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Logout 9 | 10 |
11 | Dentist Edit

12 | Clinic Edit

13 | Patient Edit 14 |
15 |
16 | Add Dentist

17 | Add Staff

18 | Add Clinic information

19 | Add Dental Codes 20 |
21 |
22 | Enter Appointment Dates 23 | Change Appointment Dates 24 | Confirm Appointment 25 |
26 | 27 | -------------------------------------------------------------------------------- /dental/cliniceditadmin.css: -------------------------------------------------------------------------------- 1 | 2 | .logo{ 3 | position: absolute; 4 | margin-left: 20px; 5 | font-family: 'Roboto', sans-serif; 6 | font-size: 0.8em; 7 | top: 20px; 8 | } 9 | .logotext{ 10 | position: absolute; 11 | margin-left: 65px; 12 | top: 20px; 13 | font-family: 'Roboto', sans-serif; 14 | font-size: 0.8em; 15 | color: black; 16 | } 17 | .logotext:visited{ 18 | color: black; 19 | } 20 | .logotext:hover{ 21 | color: black; 22 | } 23 | .col{ 24 | font-family: 'Lato', sans-serif; 25 | padding-right:55px; 26 | 27 | 28 | } 29 | .head{ 30 | color: #1984f1; 31 | font-family: 'Lato', sans-serif; 32 | 33 | } 34 | .heading{ 35 | color: black; 36 | border-bottom: 2px solid #1984f1; 37 | } 38 | table { 39 | /* make the border continuous (without gaps between columns) */ 40 | border-collapse: collapse; 41 | margin-left: 13%; 42 | margin-top: 160px; 43 | } 44 | .heading2{ 45 | border-bottom:1px solid black; 46 | } 47 | .page{ 48 | position: absolute; 49 | top: 70px; 50 | margin-left: 39%; 51 | color: black; 52 | font-family: 'Lato', sans-serif; 53 | } 54 | td{ 55 | padding: 10px; 56 | } 57 | .last{ 58 | color: #1984f1; 59 | font-family: 'Lato', sans-serif; 60 | } 61 | .last1{ 62 | font-family: 'Lato', sans-serif; 63 | } -------------------------------------------------------------------------------- /dental/clinicinfo.css: -------------------------------------------------------------------------------- 1 | 2 | .logo{ 3 | position: absolute; 4 | margin-left: 20px; 5 | font-family: 'Roboto', sans-serif; 6 | font-size: 0.8em; 7 | top: 20px; 8 | } 9 | .logotext{ 10 | position: absolute; 11 | margin-left: 65px; 12 | top: 20px; 13 | font-family: 'Roboto', sans-serif; 14 | font-size: 0.8em; 15 | color: black; 16 | } 17 | .logotext:visited{ 18 | color: black; 19 | } 20 | .logotext:hover{ 21 | color: black; 22 | } 23 | .col{ 24 | font-family: 'Lato', sans-serif; 25 | padding-right:80px; 26 | 27 | 28 | } 29 | .head{ 30 | color: #1984f1; 31 | font-family: 'Lato', sans-serif; 32 | 33 | } 34 | .heading{ 35 | color: black; 36 | border-bottom: 2px solid #1984f1; 37 | } 38 | table { 39 | /* make the border continuous (without gaps between columns) */ 40 | border-collapse: collapse; 41 | margin-left: 14%; 42 | margin-top: 240px; 43 | } 44 | .heading2{ 45 | border-bottom:1px solid black; 46 | } 47 | .page{ 48 | position: absolute; 49 | top: 120px; 50 | margin-left: 39%; 51 | color: black; 52 | font-family: 'Lato', sans-serif; 53 | } 54 | td{ 55 | padding: 10px; 56 | } 57 | .last{ 58 | color: #1984f1; 59 | font-family: 'Lato', sans-serif; 60 | } 61 | .last1{ 62 | font-family: 'Lato', sans-serif; 63 | } -------------------------------------------------------------------------------- /dental/dentisteditadmin.css: -------------------------------------------------------------------------------- 1 | 2 | .logo{ 3 | position: absolute; 4 | margin-left: 20px; 5 | font-family: 'Roboto', sans-serif; 6 | font-size: 0.8em; 7 | top: 20px; 8 | } 9 | .logotext{ 10 | position: absolute; 11 | margin-left: 65px; 12 | top: 20px; 13 | font-family: 'Roboto', sans-serif; 14 | font-size: 0.8em; 15 | color: black; 16 | } 17 | .logotext:visited{ 18 | color: black; 19 | } 20 | .logotext:hover{ 21 | color: black; 22 | } 23 | .col{ 24 | font-family: 'Lato', sans-serif; 25 | padding-right:55px; 26 | 27 | 28 | } 29 | .head{ 30 | color: #1984f1; 31 | font-family: 'Lato', sans-serif; 32 | 33 | } 34 | .heading{ 35 | color: black; 36 | border-bottom: 2px solid #1984f1; 37 | } 38 | table { 39 | /* make the border continuous (without gaps between columns) */ 40 | border-collapse: collapse; 41 | margin-left: 4%; 42 | margin-top: 160px; 43 | } 44 | .heading2{ 45 | border-bottom:1px solid black; 46 | } 47 | .page{ 48 | position: absolute; 49 | top: 70px; 50 | margin-left: 39%; 51 | color: black; 52 | font-family: 'Lato', sans-serif; 53 | } 54 | td{ 55 | padding: 10px; 56 | } 57 | .last{ 58 | color: #1984f1; 59 | font-family: 'Lato', sans-serif; 60 | } 61 | .last1{ 62 | font-family: 'Lato', sans-serif; 63 | } -------------------------------------------------------------------------------- /dental/dentistuser.css: -------------------------------------------------------------------------------- 1 | 2 | .logo{ 3 | position: absolute; 4 | margin-left: 20px; 5 | font-family: 'Roboto', sans-serif; 6 | font-size: 0.8em; 7 | top: 20px; 8 | } 9 | .logotext{ 10 | position: absolute; 11 | margin-left: 65px; 12 | top: 20px; 13 | font-family: 'Roboto', sans-serif; 14 | font-size: 0.8em; 15 | color: black; 16 | } 17 | .logotext:visited{ 18 | color: black; 19 | } 20 | .logotext:hover{ 21 | color: black; 22 | } 23 | .col{ 24 | font-family: 'Lato', sans-serif; 25 | padding-right:80px; 26 | 27 | 28 | } 29 | .head{ 30 | color: #1984f1; 31 | font-family: 'Lato', sans-serif; 32 | 33 | } 34 | .heading{ 35 | color: black; 36 | border-bottom: 2px solid #1984f1; 37 | } 38 | table { 39 | /* make the border continuous (without gaps between columns) */ 40 | border-collapse: collapse; 41 | margin-left: 32%; 42 | margin-top: 140px; 43 | } 44 | .heading2{ 45 | border-bottom:1px solid black; 46 | } 47 | .page{ 48 | position: absolute; 49 | top: 50px; 50 | margin-left: 39%; 51 | color: black; 52 | font-family: 'Lato', sans-serif; 53 | } 54 | td{ 55 | padding: 10px; 56 | } 57 | .last{ 58 | color: #1984f1; 59 | font-family: 'Lato', sans-serif; 60 | } 61 | .last1{ 62 | font-family: 'Lato', sans-serif; 63 | } -------------------------------------------------------------------------------- /dental/patienteditadmin.css: -------------------------------------------------------------------------------- 1 | 2 | .logo{ 3 | position: absolute; 4 | margin-left: 20px; 5 | font-family: 'Roboto', sans-serif; 6 | font-size: 0.8em; 7 | top: 20px; 8 | } 9 | .logotext{ 10 | position: absolute; 11 | margin-left: 65px; 12 | top: 20px; 13 | font-family: 'Roboto', sans-serif; 14 | font-size: 0.8em; 15 | color: black; 16 | } 17 | .logotext:visited{ 18 | color: black; 19 | } 20 | .logotext:hover{ 21 | color: black; 22 | } 23 | .col{ 24 | font-family: 'Lato', sans-serif; 25 | padding-right:80px; 26 | 27 | 28 | } 29 | .head{ 30 | color: #1984f1; 31 | font-family: 'Lato', sans-serif; 32 | 33 | } 34 | .heading{ 35 | color: black; 36 | border-bottom: 2px solid #1984f1; 37 | } 38 | table { 39 | /* make the border continuous (without gaps between columns) */ 40 | border-collapse: collapse; 41 | margin-left: 2%; 42 | margin-top: 160px; 43 | } 44 | .heading2{ 45 | border-bottom:1px solid black; 46 | } 47 | .page{ 48 | position: absolute; 49 | top: 70px; 50 | margin-left: 39%; 51 | color: black; 52 | font-family: 'Lato', sans-serif; 53 | } 54 | td{ 55 | padding: 10px; 56 | } 57 | .last{ 58 | color: #1984f1; 59 | font-family: 'Lato', sans-serif; 60 | } 61 | .last1{ 62 | font-family: 'Lato', sans-serif; 63 | } -------------------------------------------------------------------------------- /dental/viewappointment.css: -------------------------------------------------------------------------------- 1 | 2 | .logo{ 3 | position: absolute; 4 | margin-left: 20px; 5 | font-family: 'Roboto', sans-serif; 6 | font-size: 0.8em; 7 | top: 20px; 8 | } 9 | .logotext{ 10 | position: absolute; 11 | margin-left: 65px; 12 | top: 20px; 13 | font-family: 'Roboto', sans-serif; 14 | font-size: 0.8em; 15 | color: black; 16 | } 17 | .logotext:visited{ 18 | color: black; 19 | } 20 | .logotext:hover{ 21 | color: black; 22 | } 23 | .col{ 24 | font-family: 'Lato', sans-serif; 25 | padding-right:80px; 26 | 27 | 28 | } 29 | .head{ 30 | color: #1984f1; 31 | font-family: 'Lato', sans-serif; 32 | 33 | } 34 | .heading{ 35 | color: black; 36 | border-bottom: 2px solid #1984f1; 37 | } 38 | table { 39 | /* make the border continuous (without gaps between columns) */ 40 | border-collapse: collapse; 41 | margin-left: 12%; 42 | margin-top: 180px; 43 | } 44 | .heading2{ 45 | border-bottom:1px solid black; 46 | } 47 | .page{ 48 | position: absolute; 49 | top: 50px; 50 | margin-left: 39%; 51 | color: black; 52 | font-family: 'Lato', sans-serif; 53 | } 54 | td{ 55 | padding: 10px; 56 | } 57 | .last{ 58 | color: #1984f1; 59 | font-family: 'Lato', sans-serif; 60 | } 61 | .last1{ 62 | font-family: 'Lato', sans-serif; 63 | } -------------------------------------------------------------------------------- /dental/dentalcodesviewuser.css: -------------------------------------------------------------------------------- 1 | 2 | .logo{ 3 | position: absolute; 4 | margin-left: 20px; 5 | font-family: 'Roboto', sans-serif; 6 | font-size: 0.8em; 7 | top: 20px; 8 | } 9 | .logotext{ 10 | position: absolute; 11 | margin-left: 65px; 12 | top: 20px; 13 | font-family: 'Roboto', sans-serif; 14 | font-size: 0.8em; 15 | color: black; 16 | } 17 | .logotext:visited{ 18 | color: black; 19 | } 20 | .logotext:hover{ 21 | color: black; 22 | } 23 | .col{ 24 | font-family: 'Lato', sans-serif; 25 | padding-right:80px; 26 | 27 | 28 | } 29 | .head{ 30 | color: #1984f1; 31 | font-family: 'Lato', sans-serif; 32 | 33 | } 34 | .heading{ 35 | color: black; 36 | border-bottom: 2px solid #1984f1; 37 | } 38 | table { 39 | /* make the border continuous (without gaps between columns) */ 40 | border-collapse: collapse; 41 | margin-left: 32%; 42 | margin-top: 180px; 43 | } 44 | .heading2{ 45 | border-bottom:1px solid black; 46 | } 47 | .page{ 48 | position: absolute; 49 | top: 80px; 50 | margin-left: 42%; 51 | color: black; 52 | font-family: 'Lato', sans-serif; 53 | } 54 | td{ 55 | padding: 10px; 56 | } 57 | .last{ 58 | color: #1984f1; 59 | font-family: 'Lato', sans-serif; 60 | } 61 | .last1{ 62 | font-family: 'Lato', sans-serif; 63 | } -------------------------------------------------------------------------------- /dental/confirmappoint.css: -------------------------------------------------------------------------------- 1 | 2 | .logo{ 3 | position: absolute; 4 | margin-left: 20px; 5 | font-family: 'Roboto', sans-serif; 6 | font-size: 0.8em; 7 | top: 20px; 8 | } 9 | .logotext{ 10 | position: absolute; 11 | margin-left: 65px; 12 | top: 20px; 13 | font-family: 'Roboto', sans-serif; 14 | font-size: 0.8em; 15 | color: black; 16 | } 17 | .logotext:visited{ 18 | color: black; 19 | } 20 | .logotext:hover{ 21 | color: black; 22 | } 23 | .col{ 24 | font-family: 'Lato', sans-serif; 25 | padding-right:80px; 26 | 27 | 28 | } 29 | .head{ 30 | color: #1984f1; 31 | font-family: 'Lato', sans-serif; 32 | 33 | } 34 | .heading{ 35 | color: black; 36 | border-bottom: 2px solid #1984f1; 37 | } 38 | table { 39 | /* make the border continuous (without gaps between columns) */ 40 | border-collapse: collapse; 41 | margin-left: 14%; 42 | margin-top: 160px; 43 | } 44 | .heading2{ 45 | border-bottom:1px solid black; 46 | } 47 | .page{ 48 | position: absolute; 49 | top: 70px; 50 | margin-left: 36%; 51 | color: black; 52 | font-family: 'Lato', sans-serif; 53 | } 54 | td{ 55 | padding: 10px; 56 | } 57 | .last{ 58 | color: #1984f1; 59 | font-family: 'Lato', sans-serif; 60 | } 61 | .last1 a{ 62 | font-family: 'Lato', sans-serif; 63 | text-decoration: none; 64 | } 65 | .last1 a:hover{ 66 | text-decoration: underline; 67 | } -------------------------------------------------------------------------------- /dental/index1.css: -------------------------------------------------------------------------------- 1 | .logotext{ 2 | position: absolute; 3 | top: 4px; 4 | margin-left: 48px; 5 | font-family: 'Lato', sans-serif; 6 | color: black; 7 | } 8 | 9 | .top{ 10 | 11 | margin-left: 17px; 12 | } 13 | .image{ 14 | position: absolute; 15 | left: 90px; 16 | margin-top: 80px; 17 | } 18 | .link{ 19 | position: absolute; 20 | margin-top: 200px; 21 | background-color: #2b72e8; 22 | font-family: 'Lato', sans-serif; 23 | padding: 40px 30px; 24 | right: 40px; 25 | text-decoration: none; 26 | } 27 | .l1:hover,.l2:hover,.l3:hover,.l4:hover,.l5:hover{ 28 | 29 | background-color: #4197ee; 30 | } 31 | .sublink{ 32 | color: white; 33 | text-decoration: none; 34 | background-color: #2b72e8; 35 | padding: 10px 20px; 36 | width:100px; 37 | } 38 | .sublink:hover{ 39 | 40 | background-color: #4197ee; 41 | } 42 | .l1{ 43 | padding:10px 108px 10px 20px; 44 | } 45 | .l2{ 46 | padding:10px 68px 10px 20px; 47 | } 48 | .l3{ 49 | padding:10px 34px 10px 20px; 50 | } 51 | .l4{ 52 | padding:10px 30px 10px 20px; 53 | } 54 | .l5{ 55 | padding:10px 26px 10px 20px; 56 | } 57 | .logout{ 58 | position: absolute; 59 | margin-top: -28px; 60 | right: 40px; 61 | font-family: 'Lato', sans-serif; 62 | font-size: 1em; 63 | text-decoration: none; 64 | color: black; 65 | } 66 | .logout:hover{ 67 | color: blue; 68 | text-decoration: underline; 69 | } -------------------------------------------------------------------------------- /dental/adminregview.css: -------------------------------------------------------------------------------- 1 | 2 | .logo{ 3 | position: absolute; 4 | margin-left: 20px; 5 | font-family: 'Roboto', sans-serif; 6 | font-size: 0.8em; 7 | top: 20px; 8 | } 9 | .logotext{ 10 | position: absolute; 11 | margin-left: 65px; 12 | top: 20px; 13 | font-family: 'Roboto', sans-serif; 14 | font-size: 0.8em; 15 | color: black; 16 | } 17 | .logotext:visited{ 18 | color: black; 19 | } 20 | .logotext:hover{ 21 | color: black; 22 | } 23 | .col{ 24 | font-family: 'Lato', sans-serif; 25 | padding-right:80px; 26 | 27 | 28 | } 29 | .head{ 30 | color: #1984f1; 31 | font-family: 'Lato', sans-serif; 32 | 33 | } 34 | .heading{ 35 | color: black; 36 | border-bottom: 2px solid #1984f1; 37 | } 38 | table { 39 | /* make the border continuous (without gaps between columns) */ 40 | border-collapse: collapse; 41 | margin-left: 34%; 42 | margin-top: 160px; 43 | } 44 | .heading2{ 45 | border-bottom:1px solid black; 46 | } 47 | .page{ 48 | position: absolute; 49 | top: 70px; 50 | margin-left: 36%; 51 | color: black; 52 | font-family: 'Lato', sans-serif; 53 | } 54 | td{ 55 | padding: 10px; 56 | } 57 | .last{ 58 | color: #1984f1; 59 | font-family: 'Lato', sans-serif; 60 | } 61 | .last1{ 62 | font-family: 'Lato', sans-serif; 63 | } 64 | .und{ 65 | text-decoration: none; 66 | } 67 | .und:hover{ 68 | text-decoration: underline; 69 | } -------------------------------------------------------------------------------- /dental/login.css: -------------------------------------------------------------------------------- 1 | html, body { 2 | overflow-x: hidden; 3 | } 4 | .label 5 | { 6 | font-family: 'Lato', sans-serif; 7 | float:left; 8 | width:210px; 9 | text-align:right; 10 | clear:left; 11 | margin-right:5px; 12 | } 13 | #submit { 14 | margin-left:215px; 15 | background-color: #1984f1; 16 | padding: 10px 20px; 17 | color: white; 18 | border-style: none; 19 | border: collapse; 20 | } 21 | #submit:hover{ 22 | 23 | background-color: #4197ee; 24 | } 25 | .form{ 26 | 27 | 28 | margin-left: 26%; 29 | margin-top: 150px; 30 | } 31 | .log{ 32 | margin-right: 30px; 33 | text-decoration: none; 34 | font-family: 'Lato', sans-serif; 35 | font-size: 1em; 36 | color:black; 37 | } 38 | .log:hover{ 39 | text-decoration: underline; 40 | } 41 | .logotext{ 42 | position: absolute; 43 | top: 4px; 44 | margin-left: 48px; 45 | font-family: 'Lato', sans-serif; 46 | color: black; 47 | } 48 | .top{ 49 | 50 | margin-left: 17px; 51 | } 52 | .title{ 53 | font-family: 'Lato', sans-serif; 54 | position: absolute; 55 | right: 50%; 56 | top: 70px; 57 | } 58 | .wrap{ 59 | z-index: -100; 60 | 61 | padding: 20px 0px 100px 0px; 62 | margin-right: 40px; 63 | margin-left: 40px; 64 | } 65 | .outer{ 66 | position: absolute; 67 | top: 60px; 68 | left: -10px; 69 | right: -10px; 70 | } 71 | .error{ 72 | 73 | z-index: 10000; 74 | font-family: 'Lato', sans-serif; 75 | } -------------------------------------------------------------------------------- /dental/signup.css: -------------------------------------------------------------------------------- 1 | html, body { 2 | overflow-x: hidden; 3 | } 4 | .label 5 | { 6 | font-family: 'Lato', sans-serif; 7 | float:left; 8 | width:210px; 9 | text-align:right; 10 | clear:left; 11 | margin-right:5px; 12 | } 13 | #submit { 14 | margin-left:215px; 15 | background-color: #1984f1; 16 | padding: 10px 20px; 17 | color: white; 18 | border-style: none; 19 | border: collapse; 20 | } 21 | #submit:hover{ 22 | 23 | background-color: #4197ee; 24 | } 25 | .form{ 26 | 27 | 28 | margin-left: 26%; 29 | margin-top: 130px; 30 | } 31 | .log{ 32 | margin-right: 30px; 33 | text-decoration: none; 34 | font-family: 'Lato', sans-serif; 35 | font-size: 1em; 36 | color:black; 37 | } 38 | .log:hover{ 39 | text-decoration: underline; 40 | } 41 | .logotext{ 42 | position: absolute; 43 | top: 4px; 44 | margin-left: 48px; 45 | font-family: 'Lato', sans-serif; 46 | color: black; 47 | } 48 | 49 | .top{ 50 | 51 | margin-left: 17px; 52 | } 53 | .title{ 54 | font-family: 'Lato', sans-serif; 55 | position: absolute; 56 | right: 44%; 57 | top: 40px; 58 | } 59 | .wrap{ 60 | z-index: -100; 61 | 62 | padding: 20px 0px 100px 0px; 63 | margin-right: 40px; 64 | margin-left: 40px; 65 | } 66 | .outer{ 67 | position: absolute; 68 | top: 60px; 69 | left: -10px; 70 | right: -10px; 71 | } 72 | .error{ 73 | 74 | z-index: 10000; 75 | font-family: 'Lato', sans-serif; 76 | } -------------------------------------------------------------------------------- /dental/clinic.css: -------------------------------------------------------------------------------- 1 | html, body { 2 | overflow-x: hidden; 3 | } 4 | .label 5 | { 6 | font-family: 'Lato', sans-serif; 7 | float:left; 8 | width:210px; 9 | text-align:right; 10 | clear:left; 11 | margin-right:5px; 12 | } 13 | #submit { 14 | margin-left:215px; 15 | background-color: #1984f1; 16 | padding: 10px 20px; 17 | color: white; 18 | border-style: none; 19 | border: collapse; 20 | } 21 | #submit:hover{ 22 | 23 | background-color: #4197ee; 24 | } 25 | .form{ 26 | 27 | position: absolute; 28 | margin-left: 27%; 29 | margin-top: 150px; 30 | } 31 | .log{ 32 | margin-right: 30px; 33 | text-decoration: none; 34 | font-family: 'Lato', sans-serif; 35 | font-size: 1em; 36 | color:black; 37 | } 38 | .log:hover{ 39 | text-decoration: underline; 40 | } 41 | .logotext{ 42 | position: absolute; 43 | top: 4px; 44 | margin-left: 58px; 45 | font-family: 'Lato', sans-serif; 46 | color: black; 47 | } 48 | .top{ 49 | 50 | margin-left: 17px; 51 | } 52 | .title{ 53 | font-family: 'Lato', sans-serif; 54 | position: absolute; 55 | right: 40%; 56 | top: 90px; 57 | } 58 | .wrap{ 59 | z-index: -100; 60 | background-color: #b3d3f3; 61 | padding: 20px 0px 100px 0px; 62 | margin-right: 40px; 63 | margin-left: 40px; 64 | } 65 | .outer{ 66 | position: absolute; 67 | top: 60px; 68 | left: -10px; 69 | right: -10px; 70 | } 71 | .error{ 72 | font-family: 'Lato', sans-serif; 73 | 74 | } -------------------------------------------------------------------------------- /dental/dentalcodes.css: -------------------------------------------------------------------------------- 1 | html, body { 2 | overflow-x: hidden; 3 | } 4 | .label 5 | { 6 | font-family: 'Lato', sans-serif; 7 | float:left; 8 | width:210px; 9 | text-align:right; 10 | clear:left; 11 | margin-right:5px; 12 | } 13 | #submit { 14 | margin-left:215px; 15 | background-color: #1984f1; 16 | padding: 10px 20px; 17 | color: white; 18 | border-style: none; 19 | border: collapse; 20 | } 21 | #submit:hover{ 22 | 23 | background-color: #4197ee; 24 | } 25 | .form{ 26 | 27 | position: absolute; 28 | margin-left: 27%; 29 | margin-top: 150px; 30 | } 31 | .log{ 32 | margin-right: 30px; 33 | text-decoration: none; 34 | font-family: 'Lato', sans-serif; 35 | font-size: 1em; 36 | color:black; 37 | } 38 | .log:hover{ 39 | text-decoration: underline; 40 | } 41 | .logotext{ 42 | position: absolute; 43 | top: 4px; 44 | margin-left: 58px; 45 | font-family: 'Lato', sans-serif; 46 | color: black; 47 | } 48 | .top{ 49 | 50 | margin-left: 17px; 51 | } 52 | .title{ 53 | font-family: 'Lato', sans-serif; 54 | position: absolute; 55 | right: 40%; 56 | top: 90px; 57 | } 58 | .wrap{ 59 | z-index: -100; 60 | background-color: #b3d3f3; 61 | padding: 20px 0px 100px 0px; 62 | margin-right: 40px; 63 | margin-left: 40px; 64 | } 65 | .outer{ 66 | position: absolute; 67 | top: 60px; 68 | left: -10px; 69 | right: -10px; 70 | } 71 | .error{ 72 | font-family: 'Lato', sans-serif 73 | } -------------------------------------------------------------------------------- /dental/dentist.css: -------------------------------------------------------------------------------- 1 | html, body { 2 | overflow-x: hidden; 3 | } 4 | .label 5 | { 6 | font-family: 'Lato', sans-serif; 7 | float:left; 8 | width:210px; 9 | text-align:right; 10 | clear:left; 11 | margin-right:5px; 12 | } 13 | #submit { 14 | margin-left:215px; 15 | background-color: #1984f1; 16 | padding: 10px 20px; 17 | color: white; 18 | border-style: none; 19 | border: collapse; 20 | } 21 | #submit:hover{ 22 | 23 | background-color: #4197ee; 24 | } 25 | .form{ 26 | 27 | 28 | margin-left: 26%; 29 | margin-top: 150px; 30 | } 31 | .log{ 32 | margin-right: 30px; 33 | text-decoration: none; 34 | font-family: 'Lato', sans-serif; 35 | font-size: 1em; 36 | color:black; 37 | } 38 | .log:hover{ 39 | text-decoration: underline; 40 | } 41 | .logotext{ 42 | position: absolute; 43 | top: 4px; 44 | margin-left: 58px; 45 | font-family: 'Lato', sans-serif; 46 | color: black; 47 | } 48 | .top{ 49 | 50 | margin-left: 17px; 51 | } 52 | .title{ 53 | font-family: 'Lato', sans-serif; 54 | position: absolute; 55 | right: 40%; 56 | top: 70px; 57 | } 58 | .wrap{ 59 | z-index: -100; 60 | background-color: #b3d3f3; 61 | padding: 20px 0px 100px 0px; 62 | margin-right: 40px; 63 | margin-left: 40px; 64 | } 65 | .outer{ 66 | position: absolute; 67 | top: 60px; 68 | left: -10px; 69 | right: -10px; 70 | } 71 | .error{ 72 | 73 | z-index: 10000; 74 | font-family: 'Lato', sans-serif; 75 | } -------------------------------------------------------------------------------- /dental/adminreg.css: -------------------------------------------------------------------------------- 1 | html, body { 2 | overflow-x: hidden; 3 | } 4 | .label 5 | { 6 | font-family: 'Lato', sans-serif; 7 | float:left; 8 | width:210px; 9 | text-align:right; 10 | clear:left; 11 | margin-right:5px; 12 | } 13 | #submit { 14 | margin-left:215px; 15 | background-color: #1984f1; 16 | padding: 10px 20px; 17 | color: white; 18 | border-style: none; 19 | border: collapse; 20 | } 21 | #submit:hover{ 22 | 23 | background-color: #4197ee; 24 | } 25 | .form{ 26 | 27 | position: absolute; 28 | margin-left: 27%; 29 | margin-top: 150px; 30 | } 31 | .log{ 32 | margin-right: 30px; 33 | text-decoration: none; 34 | font-family: 'Lato', sans-serif; 35 | font-size: 1em; 36 | color:black; 37 | } 38 | .log:hover{ 39 | text-decoration: underline; 40 | } 41 | .logotext{ 42 | position: absolute; 43 | top: 4px; 44 | margin-left: 58px; 45 | font-family: 'Lato', sans-serif; 46 | color: black; 47 | } 48 | .top{ 49 | 50 | margin-left: 17px; 51 | } 52 | .title{ 53 | font-family: 'Lato', sans-serif; 54 | position: absolute; 55 | right: 40%; 56 | top: 90px; 57 | } 58 | .wrap{ 59 | z-index: -100; 60 | background-color: #b3d3f3; 61 | padding: 20px 0px 100px 0px; 62 | margin-right: 40px; 63 | margin-left: 40px; 64 | } 65 | .outer{ 66 | position: absolute; 67 | top: 60px; 68 | left: -10px; 69 | right: -10px; 70 | } 71 | .error{ 72 | font-family: 'Lato', sans-serif 73 | } 74 | .su{ 75 | font-family: 'Lato', sans-serif; 76 | font-size:0.8em; 77 | margin-left: 300px; 78 | } -------------------------------------------------------------------------------- /dental/dropdown.php: -------------------------------------------------------------------------------- 1 | query($query); 5 | 6 | while($row = $result->fetch_assoc()){ 7 | $categories[] = array("id" => $row['id'], "val" => $row['regdate']); 8 | } 9 | 10 | $query = "SELECT id,regdate,regtime FROM appointement "; 11 | $result = $db->query($query); 12 | 13 | while($row = $result->fetch_assoc()){ 14 | $subcats[$row['id']][] = array("id" => $row['id'], "val" => $row['regtime']); 15 | } 16 | 17 | $jsonCats = json_encode($categories); 18 | $jsonSubCats = json_encode($subcats); 19 | 20 | ?> 21 | 22 | 23 | 24 | 25 | 26 | 48 | 49 | 50 | 51 | 52 | 54 | 55 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /dental/adminreg.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Dental Codes 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | System Error 37 |

You could not be registered due to a system error. We apologize for any 38 | inconvenience.

'; 39 | 40 | } // End of if clause ($result) 41 | 42 | mysqli_close($dbcon); // Close the database connection. 43 | 44 | exit(); 45 | 46 | 47 | } // End of the main Submit conditional. 48 | ?> 49 | 50 | 51 |

Insert Appointment Dates

52 | 53 |
54 | 55 |

56 |
Format:21 December,2015

58 | 59 | 60 |

61 |
62 |

63 | 64 | 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /dental/admin.css: -------------------------------------------------------------------------------- 1 | .last{ 2 | 3 | background-color: #2b72e8; 4 | font-family: 'Lato', sans-serif; 5 | padding: 10px 20px; 6 | color: white; 7 | 8 | text-decoration: none; 9 | 10 | } 11 | 12 | .last:hover{ 13 | 14 | background-color: #4197ee; 15 | } 16 | 17 | .bottom{ 18 | position: absolute; 19 | bottom: 40px; 20 | margin-left: 170px; 21 | } 22 | .bottoma{ 23 | background-color: #2b72e8; 24 | font-family: 'Lato', sans-serif; 25 | padding: 10px 20px; 26 | color: white; 27 | text-decoration: none; 28 | margin-left: 100px; 29 | } 30 | .sublink,.sublinka{ 31 | background-color: #2b72e8; 32 | font-family: 'Lato', sans-serif; 33 | padding: 10px 20px; 34 | color: white; 35 | text-decoration: none; 36 | 37 | } 38 | .sublinka:hover,.sublink:hover,.bottoma:hover{ 39 | background-color: #4197ee; 40 | } 41 | 42 | .img{ 43 | position: absolute; 44 | margin-top: 80px; 45 | margin-left: 310px; 46 | } 47 | .logout{ 48 | position: absolute; 49 | top: 20px; 50 | right: 40px; 51 | font-family: 'Lato', sans-serif; 52 | font-size: 1em; 53 | font-weight: 500; 54 | text-decoration: none; 55 | color: black; 56 | } 57 | .logout:hover{ 58 | text-decoration: underline; 59 | color: blue; 60 | } 61 | .left{ 62 | position: absolute; 63 | margin-top: 200px; 64 | background-color: #2b72e8; 65 | font-family: 'Lato', sans-serif; 66 | padding: 40px 30px; 67 | left: 20px; 68 | text-decoration: none; 69 | } 70 | .right{ 71 | position: absolute; 72 | margin-top: 200px; 73 | background-color: #2b72e8; 74 | font-family: 'Lato', sans-serif; 75 | padding: 40px 30px; 76 | right: 20px; 77 | text-decoration: none; 78 | } 79 | .sublink{ 80 | color: white; 81 | text-decoration: none; 82 | background-color: #2b72e8; 83 | padding: 10px 20px; 84 | width:100px; 85 | } 86 | .sublink:hover{ 87 | 88 | background-color: #4197ee; 89 | } 90 | .l1{ 91 | padding:10px 50px 10px 20px; 92 | } 93 | .l2{ 94 | padding:10px 96px 10px 20px; 95 | } 96 | .l3{ 97 | padding:10px 20px 10px 20px; 98 | } 99 | .r2{ 100 | padding:10px 32px 10px 20px; 101 | } -------------------------------------------------------------------------------- /dental/adminregview.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | View dental codes 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 |
14 |

Appointment Dates Information

15 | 16 | 17 | 30 | Appointment DatesEdit 31 | Delete'; 32 | // Fetch and print all the records: 33 | while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { 34 | echo '' . $row['regdate'] . ' 35 | 36 | Edit 37 | Delete'; } 38 | echo ''; // Close the table so that it is ready for displaying. 39 | mysqli_free_result ($result); // Free up the resources. 40 | } 41 | 42 | else { // If it did not run OK. 43 | // Error message: 44 | echo '

The current users could not be retrieved. We apologize 45 | for any inconvenience.

'; 46 | // Debug message: 47 | echo '

' . mysqli_error($dbcon) . '

Query: ' . $q . '

'; 48 | } // End of if ($result) 49 | 50 | mysqli_close($dbcon); // Close the database connection. 51 | ?> 52 | 53 |
54 | 55 |
56 | 57 | -------------------------------------------------------------------------------- /dental/dentistuser.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | View dentist 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |

Dental Clinic

13 |
14 | 15 |
16 |

Dentist Information

17 | 18 | 19 | 32 | Dentist NameAgeDentist Type 33 | 34 | '; 35 | // Fetch and print all the records: 36 | while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { 37 | echo '' . $row['name'] . ' 38 | ' . $row['age'] .' 39 | '. $row['dtype'] . ' 40 | '; } 41 | echo ''; // Close the table so that it is ready for displaying. 42 | mysqli_free_result ($result); // Free up the resources. 43 | } 44 | 45 | else { // If it did not run OK. 46 | // Error message: 47 | echo '

The current users could not be retrieved. We apologize  48 | for any inconvenience.

'; 49 | // Debug message: 50 | echo '

' . mysqli_error($dbcon) . '

Query: ' . $q . '

'; 51 | } // End of if ($result) 52 | 53 | mysqli_close($dbcon); // Close the database connection. 54 | ?> 55 | 56 |
57 | 58 |
59 | 60 | -------------------------------------------------------------------------------- /dental/dentalcodesviewuser.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | View dental codes 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |

Dental Clinic

13 |
14 | 15 |
16 |

Dental Codes

17 | 18 | 19 | 34 | CodesUnit CostDescriptions 35 | 36 | '; 37 | // Fetch and print all the records: 38 | while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { 39 | echo '' . $row['code'] . ' 40 | ' . $row['cost'] .' 41 | '. $row['descriptions'] . ' 42 | '; } 43 | echo ''; // Close the table so that it is ready for displaying. 44 | mysqli_free_result ($result); // Free up the resources. 45 | } 46 | 47 | else { // If it did not run OK. 48 | // Error message: 49 | echo '

The current users could not be retrieved. We apologize  50 | for any inconvenience.

'; 51 | // Debug message: 52 | echo '

' . mysqli_error($dbcon) . '

Query: ' . $q . '

'; 53 | } // End of if ($result) 54 | 55 | mysqli_close($dbcon); // Close the database connection. 56 | ?> 57 | 58 |
59 | 60 |
61 | 62 | -------------------------------------------------------------------------------- /dental/patientinfo.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | View dental codes 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 |
13 |

Patient Information

14 | 15 | 16 | 31 | FirstNameLastNameAgeSexEmail 32 | AddressPhoneEdit 33 | Delete'; 34 | // Fetch and print all the records: 35 | while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { 36 | echo '' . $row['fname'] . '' . $row['lname'] .''. $row['age'] . ' 37 | '. $row['sex'] . ''. $row['email'] . ' 38 | '. $row['address'] . ''. $row['phone'] . ' 39 | Edit 40 | Delete'; } 41 | echo ''; // Close the table so that it is ready for displaying. 42 | mysqli_free_result ($result); // Free up the resources. 43 | } 44 | 45 | else { // If it did not run OK. 46 | // Error message: 47 | echo '

The current users could not be retrieved. We apologize 48 | for any inconvenience.

'; 49 | // Debug message: 50 | echo '

' . mysqli_error($dbcon) . '

Query: ' . $q . '

'; 51 | } // End of if ($result) 52 | 53 | mysqli_close($dbcon); // Close the database connection. 54 | ?> 55 | 56 |
57 | 58 |
59 | 60 | -------------------------------------------------------------------------------- /dental/editdental.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Dental Codes 5 | 6 | 7 | 8 | 9 | 10 | 11 | SUCCESSFUL entered

'; 34 | 35 | exit(); 36 | //End of SUCCESSFUL SECTION 37 | } 38 | 39 | else { // If the form handler or database table contained errors 40 | // Display any error message 41 | echo '

System Error

42 |

You could not be registered due to a system error. We apologize for any 43 | inconvenience.

'; 44 | 45 | } // End of if clause ($result) 46 | 47 | mysqli_close($dbcon); // Close the database connection. 48 | 49 | exit(); 50 | 51 | 52 | } // End of the main Submit conditional. 53 | ?> 54 | 55 | 56 |

Dental codes

57 | 58 |
59 | 60 |

61 |

63 | 64 |

65 |

67 | 68 |

69 |

71 | 72 | 73 | 74 |

75 |
76 |

77 | 78 | 79 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /dental/confirmappoint.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | View dental codes 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 |
14 |

Appointment Status

15 | 16 | 17 | 30 | 31 | Dental Codes 32 | Dentist 33 | Registration Date 34 | Time 35 | Status'; 36 | // Fetch and print all the records: 37 | while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { 38 | echo ' 39 | ' . $row['code'] . ' 40 | '. $row['dentist'] . ' 41 | '. $row['regdate'] . ' 42 | '. $row['regtime'] . ' 43 | 44 | 45 | Edit Status 46 | '; } 47 | echo ''; // Close the table so that it is ready for displaying. 48 | mysqli_free_result ($result); // Free up the resources. 49 | } 50 | 51 | else { // If it did not run OK. 52 | // Error message: 53 | echo '

The current users could not be retrieved. We apologize 54 | for any inconvenience.

'; 55 | // Debug message: 56 | echo '

' . mysqli_error($dbcon) . '

Query: ' . $q . '

'; 57 | } // End of if ($result) 58 | 59 | mysqli_close($dbcon); // Close the database connection. 60 | ?> 61 | 62 |
63 | 64 |
65 | 66 | -------------------------------------------------------------------------------- /dental/clinicinfo.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | View dental codes 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |

Dental Clinic

13 |
14 | 15 |
16 |

Clinic Information

17 | 18 | 19 | 32 | Clinic NameLocationOpening HourClosing HourTotal Rooms 33 | 34 | '; 35 | // Fetch and print all the records: 36 | while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { 37 | echo '' . $row['cname'] . ' 38 | ' . $row['location'] .' 39 | ' . $row['openhr'] .' 40 | ' . $row['closehr'] .' 41 | '. $row['rooms'] . ' 42 | '; } 43 | echo ''; // Close the table so that it is ready for displaying. 44 | mysqli_free_result ($result); // Free up the resources. 45 | } 46 | 47 | else { // If it did not run OK. 48 | // Error message: 49 | echo '

The current users could not be retrieved. We apologize  50 | for any inconvenience.

'; 51 | // Debug message: 52 | echo '

' . mysqli_error($dbcon) . '

Query: ' . $q . '

'; 53 | } // End of if ($result) 54 | 55 | mysqli_close($dbcon); // Close the database connection. 56 | ?> 57 | 58 |
59 | 60 |
61 | 62 | -------------------------------------------------------------------------------- /dental/cliniceditadmin.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | View dental codes 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 |
14 |

Clinic Information

15 | 16 | 17 | 30 | Clinic NameLocationOpening HoursClosing Hours 31 | Total RoomsEdit'; 32 | // Fetch and print all the records: 33 | while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { 34 | echo '' . $row['cname'] . ''. $row['location'] . ' 35 | '. $row['openhr'] . ''. $row['closehr'] . ' 36 | '. $row['rooms'] . ' 37 | Edit 38 | '; } 39 | echo ''; // Close the table so that it is ready for displaying. 40 | mysqli_free_result ($result); // Free up the resources. 41 | } 42 | 43 | else { // If it did not run OK. 44 | // Error message: 45 | echo '

The current users could not be retrieved. We apologize 46 | for any inconvenience.

'; 47 | // Debug message: 48 | echo '

' . mysqli_error($dbcon) . '

Query: ' . $q . '

'; 49 | } // End of if ($result) 50 | 51 | mysqli_close($dbcon); // Close the database connection. 52 | ?> 53 | 54 |
55 | 56 |
57 | 58 | -------------------------------------------------------------------------------- /dental/viewappointment: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | View dentist 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |

Dental Clinic

18 |
19 | 20 |
21 |

See Appointment

22 | 23 | 24 | 37 | Dental ProcedureDentist 38 | Appointment Date 39 | 40 | Appointment Time 41 | 42 | '; 43 | // Fetch and print all the records: 44 | while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { 45 | echo '' . $row['code'] . ' 46 | ' . $row['dentist'] .' 47 | ' . $row['regdate'] .' 48 | '. $row['regtime'] . ' 49 | '; } 50 | echo ''; // Close the table so that it is ready for displaying. 51 | mysqli_free_result ($result); // Free up the resources. 52 | } 53 | 54 | else { // If it did not run OK. 55 | // Error message: 56 | echo '

The current users could not be retrieved. We apologize  57 | for any inconvenience.

'; 58 | // Debug message: 59 | echo '

' . mysqli_error($dbcon) . '

Query: ' . $q . '

'; 60 | } // End of if ($result) 61 | 62 | mysqli_close($dbcon); // Close the database connection. 63 | ?> 64 | 65 |
66 | 67 |
68 | 69 | -------------------------------------------------------------------------------- /dental/viewappointment.php: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | View dentist 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |

Dental Clinic

18 |
19 | 20 |
21 |

See Appointment

22 | 23 | 24 | 37 | Dental ProcedureDentist 38 | Appointment Date 39 | Appointment Time 40 | Status 41 | 42 | '; 43 | // Fetch and print all the records: 44 | while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { 45 | echo '' . $row['code'] . ' 46 | ' . $row['dentist'] .' 47 | ' . $row['regdate'] .' 48 | '. $row['regtime'] . ' 49 | '. $row['status'] . ' 50 | '; } 51 | echo ''; // Close the table so that it is ready for displaying. 52 | mysqli_free_result ($result); // Free up the resources. 53 | } 54 | 55 | else { // If it did not run OK. 56 | // Error message: 57 | echo '

The current users could not be retrieved. We apologize  58 | for any inconvenience.

'; 59 | // Debug message: 60 | echo '

' . mysqli_error($dbcon) . '

Query: ' . $q . '

'; 61 | } // End of if ($result) 62 | 63 | mysqli_close($dbcon); // Close the database connection. 64 | ?> 65 | 66 |
67 | 68 |
69 | 70 | -------------------------------------------------------------------------------- /dental/patienteditadmin.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | View dental codes 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 |
14 |

Patient Information

15 | 16 | 17 | 30 | NameAgeEmail 31 | AddressPhoneEdit 32 | Delete'; 33 | // Fetch and print all the records: 34 | while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { 35 | echo '' . $row['name'] . ''. $row['age'] . ' 36 | '. $row['email'] . ' 37 | '. $row['address'] . ''. $row['phone'] . ' 38 | 39 | Edit 40 | Delete'; } 41 | echo ''; // Close the table so that it is ready for displaying. 42 | mysqli_free_result ($result); // Free up the resources. 43 | } 44 | 45 | else { // If it did not run OK. 46 | // Error message: 47 | echo '

The current users could not be retrieved. We apologize 48 | for any inconvenience.

'; 49 | // Debug message: 50 | echo '

' . mysqli_error($dbcon) . '

Query: ' . $q . '

'; 51 | } // End of if ($result) 52 | 53 | mysqli_close($dbcon); // Close the database connection. 54 | ?> 55 | 56 |
57 | 58 |
59 | 60 | -------------------------------------------------------------------------------- /dental/dentalcodes.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Dental Codes 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | System Error 43 |

You could not be registered due to a system error. We apologize for any 44 | inconvenience.

'; 45 | 46 | } // End of if clause ($result) 47 | 48 | mysqli_close($dbcon); // Close the database connection. 49 | 50 | exit(); 51 | 52 | 53 | } // End of the main Submit conditional. 54 | ?> 55 | 56 | 57 |

Insert Dental codes

58 | 59 |
60 | 61 |

62 |

64 | 65 |

66 |

68 | 69 |

70 |

72 | 73 | 74 | 75 |

76 |
77 |

78 | 79 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /dental/delete.php: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | Delete a record 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 |
17 |

Delete a Record

18 | This page has been accessed in error.

'; 26 | 27 | exit(); 28 | } 29 | require ('connect-mysql.php'); 30 | // Has the form been submitted? #2 31 | if ($_SERVER['REQUEST_METHOD'] == 'POST') { 32 | if ($_POST['sure'] == 'Yes') { // Delete the record 33 | // Make the query 34 | $q = "DELETE FROM signup WHERE userid=$id LIMIT 1"; 35 | $result = @mysqli_query ($dbcon , $q); 36 | if (mysqli_affected_rows($dbcon ) == 1) { // If there was no problem 37 | // Display a message 38 | echo '

The record has been deleted.

'; 39 | } else { // If the query failed to run 40 | echo '

The record could not be deleted.
Probably  41 | because it does not exist or due to a system error.

'; // Display error message 42 | echo '

' . mysqli_error($dbcon ) . '
Query: ' . $q . '

'; 43 | // Debugging message 44 | } 45 | } else { // Confirmation that the record was not deleted 46 | echo '

The user has NOT been deleted.

'; 47 | } 48 | } else { // Display the form 49 | // Retrieve the member's data #3 50 | $q = "SELECT name FROM signup WHERE userid=$id"; 51 | $result = @mysqli_query ($dbcon , $q); 52 | if (mysqli_num_rows($result) == 1) { // Valid user ID, show the form 53 | // Get the member's data 54 | $row = mysqli_fetch_array ($result, MYSQLI_NUM); 55 | // Display the name of the member being deleted 56 | echo "

Are you sure you want to permanently delete $row[0]?

"; 57 | // Display the delete page 58 | echo '
59 | 60 | 61 | 62 |
'; 63 | } else { // Not a valid member’s ID 64 | echo '

This page has been accessed in error.

'; 65 | echo '

 

'; 66 | } 67 | } // End of the main conditional section 68 | mysqli_close($dbcon ); 69 | 70 | ?> 71 |
72 |
73 | 74 | -------------------------------------------------------------------------------- /dental/deletedentist.php: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | Delete a record 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 |
17 |

Delete a Record

18 | This page has been accessed in error.

'; 26 | 27 | exit(); 28 | } 29 | require ('connect-mysql.php'); 30 | // Has the form been submitted? #2 31 | if ($_SERVER['REQUEST_METHOD'] == 'POST') { 32 | if ($_POST['sure'] == 'Yes') { // Delete the record 33 | // Make the query 34 | $q = "DELETE FROM dentist WHERE did=$id LIMIT 1"; 35 | $result = @mysqli_query ($dbcon , $q); 36 | if (mysqli_affected_rows($dbcon ) == 1) { // If there was no problem 37 | // Display a message 38 | echo '

The record has been deleted.

'; 39 | } else { // If the query failed to run 40 | echo '

The record could not be deleted.
Probably 41 | because it does not exist or due to a system error.

'; // Display error message 42 | echo '

' . mysqli_error($dbcon ) . '
Query: ' . $q . '

'; 43 | // Debugging message 44 | } 45 | } else { // Confirmation that the record was not deleted 46 | echo '

The user has NOT been deleted.

'; 47 | } 48 | } else { // Display the form 49 | // Retrieve the member's data #3 50 | $q = "SELECT name FROM dentist WHERE did=$id"; 51 | $result = @mysqli_query ($dbcon , $q); 52 | if (mysqli_num_rows($result) == 1) { // Valid user ID, show the form 53 | // Get the member's data 54 | $row = mysqli_fetch_array ($result, MYSQLI_NUM); 55 | // Display the name of the member being deleted 56 | echo "

Are you sure you want to permanently delete $row[0]?

"; 57 | // Display the delete page 58 | echo '
59 | 60 | 61 | 62 |
'; 63 | } else { // Not a valid member’s ID 64 | echo '

This page has been accessed in error.

'; 65 | echo '

 

'; 66 | } 67 | } // End of the main conditional section 68 | mysqli_close($dbcon ); 69 | 70 | ?> 71 |
72 |
73 | 74 | -------------------------------------------------------------------------------- /dental/deleteappoint.php: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | Delete a record 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 |
17 |

Delete Appointment Date

18 | This page has been accessed in error.

'; 26 | 27 | exit(); 28 | } 29 | require ('connect-mysql.php'); 30 | // Has the form been submitted? #2 31 | if ($_SERVER['REQUEST_METHOD'] == 'POST') { 32 | if ($_POST['sure'] == 'Yes') { // Delete the record 33 | // Make the query 34 | $q = "DELETE FROM adminreg WHERE ser=$id LIMIT 1"; 35 | $result = @mysqli_query ($dbcon , $q); 36 | if (mysqli_affected_rows($dbcon ) == 1) { // If there was no problem 37 | // Display a message 38 | echo '

The record has been deleted.

'; 39 | } else { // If the query failed to run 40 | echo '

The record could not be deleted.
Probably  41 | because it does not exist or due to a system error.

'; // Display error message 42 | echo '

' . mysqli_error($dbcon ) . '
Query: ' . $q . '

'; 43 | // Debugging message 44 | } 45 | } else { // Confirmation that the record was not deleted 46 | echo '

The date has NOT been deleted.

'; 47 | } 48 | } else { // Display the form 49 | // Retrieve the member's data #3 50 | $q = "SELECT regdate FROM adminreg WHERE ser=$id"; 51 | $result = @mysqli_query ($dbcon , $q); 52 | if (mysqli_num_rows($result) == 1) { // Valid user ID, show the form 53 | // Get the member's data 54 | $row = mysqli_fetch_array ($result, MYSQLI_NUM); 55 | // Display the name of the member being deleted 56 | echo "

Are you sure you want to permanently delete $row[0]?

"; 57 | // Display the delete page 58 | echo '
59 | 60 | 61 | 62 |
'; 63 | } else { // Not a valid member’s ID 64 | echo '

This page has been accessed in error.

'; 65 | echo '

 

'; 66 | } 67 | } // End of the main conditional section 68 | mysqli_close($dbcon ); 69 | 70 | ?> 71 |
72 |
73 | 74 | -------------------------------------------------------------------------------- /dental/dentisteditadmin.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | View dental codes 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 |
15 |

Patient Information

16 | 17 | 18 | 31 | NameAgeSex 32 | Email 33 | AddressPhoneTypeEdit 34 | Delete'; 35 | // Fetch and print all the records: 36 | while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) { 37 | echo '' . $row['name'] . ''. $row['age'] . ' 38 | '. $row['sex'] . ''. $row['email'] . ' 39 | '. $row['address'] . ''. $row['phone'] . ' 40 | '. $row['dtype'] . ' 41 | Edit 42 | Delete'; } 43 | echo ''; // Close the table so that it is ready for displaying. 44 | mysqli_free_result ($result); // Free up the resources. 45 | } 46 | 47 | else { // If it did not run OK. 48 | // Error message: 49 | echo '

The current users could not be retrieved. We apologize 50 | for any inconvenience.

'; 51 | // Debug message: 52 | echo '

' . mysqli_error($dbcon) . '

Query: ' . $q . '

'; 53 | } // End of if ($result) 54 | 55 | mysqli_close($dbcon); // Close the database connection. 56 | ?> 57 | 58 |
59 | 60 |
61 | 62 | -------------------------------------------------------------------------------- /dental/login.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | The Login page 6 | 7 | 8 | 9 | 10 | 11 |
12 |

Dental Clinic

13 |
14 | 15 |
16 | 17 | You forgot to enter your email address.

'; 29 | } 30 | // Validate the password 31 | if (!empty($_POST['password'])) { 32 | $p = mysqli_real_escape_string($dbcon, $_POST['password']); 33 | } else { 34 | $p = FALSE; 35 | echo '

You forgot to enter your password.

'; 36 | } 37 | 38 | 39 | if ($e && $p) 40 | { //if no problems 41 | // Retrieve the user_id, first_name and user_level for that email/password combination 42 | $q = "SELECT userid, user_level FROM signup WHERE (email='$e' AND password='$p')"; 43 | // Run the query and assign it to the variable $result 44 | $result = @mysqli_query ($dbcon, $q); 45 | // Count the number of rows that match the email/password combination 46 | 47 | 48 | 49 | if (@mysqli_num_rows($result) == 1) 50 | { //if one database row (record) matches the input:- 51 | // Start the session, fetch the record and insert the three values in an array 52 | 53 | 54 | session_start(); 55 | $_SESSION = mysqli_fetch_array ($result, MYSQLI_ASSOC); 56 | // Ensure that the user level is an integer. 57 | $_SESSION['user_level'] = (int) $_SESSION['user_level']; 58 | $_SESSION['userid']; 59 | // Use a ternary operation to set the URL 60 | 61 | $url = ($_SESSION['user_level'] === 1) ? 'admin.php' : 'index1.html'; 62 | header('Location: ' . $url); // Make the browser load either the members’ or the admin page 63 | exit(); // Cancel the rest of the script 64 | mysqli_free_result($result); 65 | mysqli_close($dbcon); 66 | } 67 | 68 | else { // No match was made. 69 | echo '

The e-mail address and password entered do not match our records 70 |
Perhaps you need to register, just click the Register button on the header menu

'; 71 | } 72 | 73 | } 74 | else { // If there was a problem. 75 | echo '

Please try again.

'; 76 | } 77 | mysqli_close($dbcon); 78 | } // End of SUBMIT conditional. 79 | ?> 80 | 81 | 82 |
83 | 84 |

85 | 86 |
87 |
88 | 89 | -------------------------------------------------------------------------------- /dental/edit_appointinfo.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Edit a record 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 |
16 |

17 | 18 | This page has been accessed in error

'; 29 | exit(); 30 | } 31 | 32 | require ('connect-mysql.php'); 33 | // Has the form been submitted? 34 | if ($_SERVER['REQUEST_METHOD'] == 'POST') 35 | { 36 | $errors = array(); 37 | 38 | 39 | // Look for the dental codes 40 | if (empty($_POST['dates'])) { 41 | $errors[] = 'You forgot to enter the date'; 42 | } else { 43 | $dates = mysqli_real_escape_string($dbcon, trim($_POST['dates'])); 44 | } 45 | 46 | 47 | 48 | 49 | 50 | if (empty($errors)) 51 | { // If everything is OK, make the update query 52 | // Check that the email is not already in the users table 53 | $q = "UPDATE adminreg SET regdate='$dates' WHERE ser=$id LIMIT 1"; 54 | $result = @mysqli_query ($dbcon, $q); 55 | if (mysqli_affected_rows($dbcon) == 1) { // If it ran OK 56 | // Echo a message if the edit was satisfactory 57 | echo '

The user has been edited.

'; 58 | } else { // Echo a message if the query failed 59 | echo '

The user could not be edited due to a system error. 60 | We apologize for any inconvenience.

'; // Error message. 61 | echo '

' . mysqli_error($dbcon) . '
Query: ' . $q . '

'; // Debugging message. 62 | } // End of if ($result) 63 | mysqli_close($dbcon); // Close the database connection. 64 | // Include the footer and quit the script: 65 | 66 | exit(); 67 | } else { // Display the errors. 68 | echo '

The following error(s) occurred:
'; 69 | 70 | foreach ($errors as $msg) { // Extract the errors from the array and echo them 71 | echo " - $msg
\n"; 72 | } 73 | echo '

Please try again.

'; 74 | } // End of if (empty($errors))section 75 | } // End of the conditionals 76 | // Select the record 77 | 78 | 79 | $q = "SELECT ser,regdate FROM adminreg WHERE ser=$id"; 80 | $result = @mysqli_query ($dbcon, $q); 81 | if (mysqli_num_rows($result) == 1) 82 | { // Valid user ID, display the form. 83 | // Get the user's information 84 | $row = mysqli_fetch_array ($result, MYSQLI_NUM); 85 | // Create the form 86 | echo '
87 |

88 |

90 | 91 | 92 |

93 |
94 |
'; 95 | } 96 | else { // The record could not be validated 97 | echo '

This page has been accessed in error

'; 98 | } 99 | mysqli_close($dbcon); 100 | 101 | ?> 102 |
103 |
104 | 105 | -------------------------------------------------------------------------------- /dental/edit_status.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Change The Status 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 |
16 |

17 | 18 | This page has been accessed in error

'; 29 | exit(); 30 | } 31 | 32 | require ('connect-mysql.php'); 33 | // Has the form been submitted? 34 | if ($_SERVER['REQUEST_METHOD'] == 'POST') 35 | { 36 | $errors = array(); 37 | 38 | 39 | // Look for the dental codes 40 | if (empty($_POST['status'])) { 41 | $errors[] = 'You forgot to enter status'; 42 | } else { 43 | $status = mysqli_real_escape_string($dbcon, trim($_POST['status'])); 44 | } 45 | 46 | 47 | 48 | 49 | 50 | if (empty($errors)) 51 | { // If everything is OK, make the update query 52 | // Check that the email is not already in the users table 53 | $q = "UPDATE appointement SET status='$status' WHERE ser=$id LIMIT 1"; 54 | $result = @mysqli_query ($dbcon, $q); 55 | if (mysqli_affected_rows($dbcon) == 1) { // If it ran OK 56 | // Echo a message if the edit was satisfactory 57 | echo '

The status has been updated.

'; 58 | 59 | } else { // Echo a message if the query failed 60 | echo '

The user could not be edited due to a system error. 61 | We apologize for any inconvenience.

'; // Error message. 62 | echo '

' . mysqli_error($dbcon) . '
Query: ' . $q . '

'; // Debugging message. 63 | } // End of if ($result) 64 | mysqli_close($dbcon); // Close the database connection. 65 | // Include the footer and quit the script: 66 | 67 | exit(); 68 | } else { // Display the errors. 69 | echo '

The following error(s) occurred:
'; 70 | 71 | foreach ($errors as $msg) { // Extract the errors from the array and echo them 72 | echo " - $msg
\n"; 73 | } 74 | echo '

Please try again.

'; 75 | } // End of if (empty($errors))section 76 | } // End of the conditionals 77 | // Select the record 78 | 79 | 80 | $q = "SELECT regdate,status FROM appointement WHERE ser=$id"; 81 | $result = @mysqli_query ($dbcon, $q); 82 | if (mysqli_num_rows($result) == 1) 83 | { // Valid user ID, display the form. 84 | // Get the user's information 85 | $row = mysqli_fetch_array ($result, MYSQLI_NUM); 86 | // Display the name of the member being deleted 87 | echo "

Are you sure you want to update the status of registraion date $row[0]?

"; 88 | 89 | 90 | // Create the form 91 | echo '
92 |

93 |

98 | 99 | 100 | 101 |

102 |
103 |
'; 104 | } 105 | else { // The record could not be validated 106 | echo '

This page has been accessed in error

'; 107 | } 108 | mysqli_close($dbcon); 109 | 110 | ?> 111 |
112 |
113 | 114 | -------------------------------------------------------------------------------- /dental/editcode.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Edit a record 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 |
15 |

Edit a Record

16 | 17 | This page has been accessed in error

'; 28 | exit(); 29 | } 30 | 31 | require ('connect-mysql.php'); 32 | // Has the form been submitted? 33 | if ($_SERVER['REQUEST_METHOD'] == 'POST') 34 | { 35 | $errors = array(); 36 | 37 | 38 | // Look for the dental codes 39 | if (empty($_POST['code'])) { 40 | $errors[] = 'You forgot to enter the dental code.'; 41 | } else { 42 | $code = mysqli_real_escape_string($dbcon, trim($_POST['code'])); 43 | } 44 | 45 | 46 | // Look for the unit cost 47 | if (empty($_POST['unitcost'])) { 48 | $errors[] = 'You forgot to enter the unit cost.'; 49 | } else { 50 | $unitcost = mysqli_real_escape_string($dbcon, trim($_POST['unitcost'])); 51 | } 52 | 53 | 54 | // Look for the descriptions 55 | if (empty($_POST['description'])) { 56 | $errors[] = 'You forgot to enter the description.'; 57 | } else { 58 | $description = mysqli_real_escape_string($dbcon, trim($_POST['description'])); 59 | } 60 | 61 | 62 | if (empty($errors)) 63 | { // If everything is OK, make the update query 64 | // Check that the email is not already in the users table 65 | $q = "UPDATE dentalcode SET code='$code', unitcost='$unitcost', description='$description' WHERE id=$id LIMIT 1"; 66 | $result = @mysqli_query ($dbcon, $q); 67 | if (mysqli_affected_rows($dbcon) == 1) { // If it ran OK 68 | // Echo a message if the edit was satisfactory 69 | echo '

The user has been edited.

'; 70 | } else { // Echo a message if the query failed 71 | echo '

The user could not be edited due to a system error. 72 | We apologize for any inconvenience.

'; // Error message. 73 | echo '

' . mysqli_error($dbcon) . '
Query: ' . $q . '

'; // Debugging message. 74 | } // End of if ($result) 75 | mysqli_close($dbcon); // Close the database connection. 76 | // Include the footer and quit the script: 77 | 78 | exit(); 79 | } else { // Display the errors. 80 | echo '

The following error(s) occurred:
'; 81 | 82 | foreach ($errors as $msg) { // Extract the errors from the array and echo them 83 | echo " - $msg
\n"; 84 | } 85 | echo '

Please try again.

'; 86 | } // End of if (empty($errors))section 87 | } // End of the conditionals 88 | // Select the record 89 | 90 | 91 | $q = "SELECT * FROM dentalcode WHERE id=$id"; 92 | $result = @mysqli_query ($dbcon, $q); 93 | if (mysqli_num_rows($result) == 1) 94 | { // Valid user ID, display the form. 95 | // Get the user's information 96 | $row = mysqli_fetch_array ($result, MYSQLI_NUM); 97 | // Create the form 98 | echo '
99 |

100 |

102 |

103 |

105 |

106 |

108 |

109 |
110 |
'; 111 | } 112 | else { // The record could not be validated 113 | echo '

This page has been accessed in error

'; 114 | } 115 | mysqli_close($dbcon); 116 | 117 | ?> 118 |
119 |
120 | 121 | -------------------------------------------------------------------------------- /dental/clinic.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Register page 5 | 6 | 7 | 8 | 9 |
10 | 11 |
12 | 13 | System Error 73 |

You could not be registered due to a system error. We apologize 74 | for any inconvenience.

'; 75 | // Debugging message: 76 | echo '

' . mysqli_error($dbcon) . '

Query: ' . $q . '

'; 77 | } // End of if ($result) 78 | mysqli_close($dbcon); // Close the database connection. 79 | // Include the footer and quit the script: 80 | 81 | exit(); 82 | } else { // Report the errors. 83 | echo '

Error!

84 |

The following error(s) occurred:
'; 85 | foreach ($errors as $msg) { // Extract the errors from the array and echo them 86 | echo " - $msg
\n"; 87 | } 88 | echo '

Please try again.


'; 89 | }// End of if (empty($errors)) 90 | } // End of the main Submit conditional. 91 | ?> 92 | 93 |

Insert Clinic Information

94 | 95 |
96 | 97 |

98 |

100 | 101 |

102 |

104 | 105 |

106 |

108 | 109 |

110 |

112 | 113 |

114 |

116 | 117 |

118 |
119 | 120 |

121 |
122 |
123 | 124 | -------------------------------------------------------------------------------- /dental/staff.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Register page 5 | 6 | 7 | 8 | 9 |
10 | 11 |
12 | 13 | System Error 89 |

You could not be registered due to a system error. We apologize 90 | for any inconvenience.

'; 91 | // Debugging message: 92 | echo '

' . mysqli_error($dbcon) . '

Query: ' . $q . '

'; 93 | } // End of if ($result) 94 | mysqli_close($dbcon); // Close the database connection. 95 | // Include the footer and quit the script: 96 | 97 | exit(); 98 | } else { // Report the errors. 99 | echo '

Error!

100 |

The following error(s) occurred:
'; 101 | foreach ($errors as $msg) { // Extract the errors from the array and echo them 102 | echo " - $msg
\n"; 103 | } 104 | echo '

Please try again.


'; 105 | }// End of if (empty($errors)) 106 | } // End of the main Submit conditional. 107 | ?> 108 | 109 |

Insert Staff Information

110 | 111 |
112 | 113 |

114 |

116 | 117 |

118 |

120 | 121 |

122 |

124 | 125 |

126 |

128 | 129 |

130 |

132 | 133 |

134 |

136 | 137 | 138 |

139 |
140 | 141 |

142 |
143 |
144 | 145 | -------------------------------------------------------------------------------- /dental/appointement.php: -------------------------------------------------------------------------------- 1 | 6 | 7 | System Error 39 |

You could not be registered due to a system error. We apologize 40 | for any inconvenience.

'; 41 | // Debugging message: 42 | echo '

' . mysqli_error($dbcon) . '

Query: ' . $q . '

'; 43 | } // End of if ($result) 44 | 45 | mysqli_close($dbcon); // Close the database connection. 46 | // Include the footer and quit the script: 47 | 48 | exit(); 49 | } 50 | 51 | 52 | 53 | 54 | // End of the main Submit conditional. 55 | ?> 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 |

Dental Clinic

64 |

Make Appointment

65 |
66 | 67 | 68 | 74 | 75 |

84 | 85 | 86 | 87 | 93 | 94 |

104 | 105 | 106 | 107 | 108 | 114 | 115 |

125 | 126 | 139 |
140 |
141 | 142 | 143 | 144 |
145 | 146 | -------------------------------------------------------------------------------- /dental/edit_clinicinfo.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Edit a record 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 |
15 |

16 | 17 | This page has been accessed in error

'; 28 | exit(); 29 | } 30 | 31 | require ('connect-mysql.php'); 32 | // Has the form been submitted? 33 | if ($_SERVER['REQUEST_METHOD'] == 'POST') 34 | { 35 | $errors = array(); 36 | 37 | 38 | // Look for the dental codes 39 | if (empty($_POST['cname'])) { 40 | $errors[] = 'You forgot to enter clinic name'; 41 | } else { 42 | $cname = mysqli_real_escape_string($dbcon, trim($_POST['cname'])); 43 | } 44 | 45 | 46 | 47 | 48 | 49 | // Look for the descriptions 50 | if (empty($_POST['location'])) { 51 | $errors[] = 'You forgot to enter the location.'; 52 | } else { 53 | $location = mysqli_real_escape_string($dbcon, trim($_POST['location'])); 54 | } 55 | 56 | 57 | // Look for the descriptions 58 | if (empty($_POST['openhr'])) { 59 | $errors[] = 'You forgot to enter the opening hours.'; 60 | } else { 61 | $openhr = mysqli_real_escape_string($dbcon, trim($_POST['openhr'])); 62 | } 63 | 64 | 65 | // Look for the descriptions 66 | if (empty($_POST['closehr'])) { 67 | $errors[] = 'You forgot to enter the closing hours.'; 68 | } else { 69 | $closehr = mysqli_real_escape_string($dbcon, trim($_POST['closehr'])); 70 | } 71 | 72 | 73 | // Look for the descriptions 74 | if (empty($_POST['rooms'])) { 75 | $errors[] = 'You forgot to enter the total no. of rooms.'; 76 | } else { 77 | $rooms = mysqli_real_escape_string($dbcon, trim($_POST['rooms'])); 78 | } 79 | 80 | 81 | if (empty($errors)) 82 | { // If everything is OK, make the update query 83 | // Check that the email is not already in the users table 84 | $q = "UPDATE clinic SET cname='$cname', location='$location',openhr='$openhr',closehr='$closehr',rooms='$rooms' WHERE cid=$id LIMIT 1"; 85 | $result = @mysqli_query ($dbcon, $q); 86 | if (mysqli_affected_rows($dbcon) == 1) { // If it ran OK 87 | // Echo a message if the edit was satisfactory 88 | echo '

The user has been edited.

'; 89 | } else { // Echo a message if the query failed 90 | echo '

The user could not be edited due to a system error. 91 | We apologize for any inconvenience.

'; // Error message. 92 | echo '

' . mysqli_error($dbcon) . '
Query: ' . $q . '

'; // Debugging message. 93 | } // End of if ($result) 94 | mysqli_close($dbcon); // Close the database connection. 95 | // Include the footer and quit the script: 96 | 97 | exit(); 98 | } else { // Display the errors. 99 | echo '

The following error(s) occurred:
'; 100 | 101 | foreach ($errors as $msg) { // Extract the errors from the array and echo them 102 | echo " - $msg
\n"; 103 | } 104 | echo '

Please try again.

'; 105 | } // End of if (empty($errors))section 106 | } // End of the conditionals 107 | // Select the record 108 | 109 | 110 | $q = "SELECT cid,cname,location,openhr,closehr,rooms FROM clinic WHERE cid=$id"; 111 | $result = @mysqli_query ($dbcon, $q); 112 | if (mysqli_num_rows($result) == 1) 113 | { // Valid user ID, display the form. 114 | // Get the user's information 115 | $row = mysqli_fetch_array ($result, MYSQLI_NUM); 116 | // Create the form 117 | echo '
118 |

119 |

121 | 122 |

123 |

125 |

126 |

128 |

129 |

131 |

132 |

134 | 135 | 136 |

137 |
138 |
'; 139 | } 140 | else { // The record could not be validated 141 | echo '

This page has been accessed in error

'; 142 | } 143 | mysqli_close($dbcon); 144 | 145 | ?> 146 |
147 |
148 | 149 | -------------------------------------------------------------------------------- /dental/edit_patientinfo.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Edit a record 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 |
16 |

17 | 18 | This page has been accessed in error

'; 29 | exit(); 30 | } 31 | 32 | require ('connect-mysql.php'); 33 | // Has the form been submitted? 34 | if ($_SERVER['REQUEST_METHOD'] == 'POST') 35 | { 36 | $errors = array(); 37 | 38 | 39 | // Look for the dental codes 40 | if (empty($_POST['name'])) { 41 | $errors[] = 'You forgot to enter your first name'; 42 | } else { 43 | $name = mysqli_real_escape_string($dbcon, trim($_POST['name'])); 44 | } 45 | 46 | 47 | 48 | // Look for the descriptions 49 | if (empty($_POST['age'])) { 50 | $errors[] = 'You forgot to enter your age.'; 51 | } else { 52 | $age = mysqli_real_escape_string($dbcon, trim($_POST['age'])); 53 | } 54 | 55 | 56 | // Look for the descriptions 57 | if (empty($_POST['phone'])) { 58 | $errors[] = 'You forgot to enter the phone no.'; 59 | } else { 60 | $phone = mysqli_real_escape_string($dbcon, trim($_POST['phone'])); 61 | } 62 | 63 | 64 | // Look for the descriptions 65 | if (empty($_POST['email'])) { 66 | $errors[] = 'You forgot to enter the email id.'; 67 | } else { 68 | $email = mysqli_real_escape_string($dbcon, trim($_POST['email'])); 69 | } 70 | 71 | 72 | // Look for the descriptions 73 | if (empty($_POST['address'])) { 74 | $errors[] = 'You forgot to enter the address.'; 75 | } else { 76 | $address = mysqli_real_escape_string($dbcon, trim($_POST['address'])); 77 | } 78 | 79 | 80 | 81 | if (empty($errors)) 82 | { // If everything is OK, make the update query 83 | // Check that the email is not already in the users table 84 | $q = "UPDATE signup SET name='$name', age='$age' , phone='$phone' ,email='$email' , address='$address' WHERE userid=$id LIMIT 1"; 85 | $result = @mysqli_query ($dbcon, $q); 86 | if (mysqli_affected_rows($dbcon) == 1) { // If it ran OK 87 | // Echo a message if the edit was satisfactory 88 | echo '

The user has been edited.

'; 89 | } else { // Echo a message if the query failed 90 | echo '

The user could not be edited due to a system error. 91 | We apologize for any inconvenience.

'; // Error message. 92 | echo '

' . mysqli_error($dbcon) . '
Query: ' . $q . '

'; // Debugging message. 93 | } // End of if ($result) 94 | mysqli_close($dbcon); // Close the database connection. 95 | // Include the footer and quit the script: 96 | 97 | exit(); 98 | } else { // Display the errors. 99 | echo '

The following error(s) occurred:
'; 100 | 101 | foreach ($errors as $msg) { // Extract the errors from the array and echo them 102 | echo " - $msg
\n"; 103 | } 104 | echo '

Please try again.

'; 105 | } // End of if (empty($errors))section 106 | } // End of the conditionals 107 | // Select the record 108 | 109 | 110 | $q = "SELECT userid,name,age,phone,email,address FROM signup WHERE userid=$id"; 111 | $result = @mysqli_query ($dbcon, $q); 112 | if (mysqli_num_rows($result) == 1) 113 | { // Valid user ID, display the form. 114 | // Get the user's information 115 | $row = mysqli_fetch_array ($result, MYSQLI_NUM); 116 | // Create the form 117 | echo '
118 |

119 |

121 | 122 |

123 |

125 |

126 |

128 |

129 |

131 |

132 |

134 |

135 |
136 |
'; 137 | } 138 | else { // The record could not be validated 139 | echo '

This page has been accessed in error

'; 140 | } 141 | mysqli_close($dbcon); 142 | 143 | ?> 144 |
145 |
146 | 147 | -------------------------------------------------------------------------------- /dental/dentist.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Register page 5 | 6 | 7 | 8 | 9 |
10 | 11 |
12 | 13 | System Error 94 |

You could not be registered due to a system error. We apologize 95 | for any inconvenience.

'; 96 | // Debugging message: 97 | echo '

' . mysqli_error($dbcon) . '

Query: ' . $q . '

'; 98 | } // End of if ($result) 99 | mysqli_close($dbcon); // Close the database connection. 100 | // Include the footer and quit the script: 101 | 102 | exit(); 103 | } else { // Report the errors. 104 | echo '

Error!

105 |

The following error(s) occurred:
'; 106 | foreach ($errors as $msg) { // Extract the errors from the array and echo them 107 | echo " - $msg
\n"; 108 | } 109 | echo '

Please try again.


'; 110 | }// End of if (empty($errors)) 111 | } // End of the main Submit conditional. 112 | ?> 113 | 114 |

Insert Dentist Information

115 | 116 |
117 | 118 |

119 |

121 | 122 |

123 |

125 | 126 |

127 |

129 | 130 |

131 |

133 | 134 |

135 |

137 | 138 |

139 |

141 | 142 | 143 |

149 | 150 | 151 | 152 | 153 | 154 | 155 |

156 |
157 | 158 |

159 |
160 |
161 | 162 | -------------------------------------------------------------------------------- /dental/signup.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Register page 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |

Dental Clinic

13 |
14 | 15 |
16 |

17 | 90) 49 | { 50 | $errors[] = 'age should be below 80.'; 51 | } 52 | else { 53 | $age = mysqli_real_escape_string($dbcon, trim($_POST['age'])); 54 | } 55 | // Check for an address 56 | if (empty($_POST['address'])) { 57 | $errors[] = 'You forgot to enter your address.'; 58 | } else { 59 | $address = mysqli_real_escape_string($dbcon, trim($_POST['address'])); 60 | } 61 | // Check for an email address 62 | if (empty($_POST['email'])) { 63 | $errors[] = 'You forgot to enter your email address.'; 64 | } else { 65 | $email = mysqli_real_escape_string($dbcon, trim($_POST['email'])); 66 | } 67 | // Check for a password and match it against the confirmed password 68 | if (!empty($_POST['psword1'])) { 69 | if ($_POST['psword1'] != $_POST['psword2']) { 70 | $errors[] = 'Your two passwords did not match.'; 71 | } else { 72 | $p = mysqli_real_escape_string($dbcon, trim($_POST['psword1'])); 73 | } 74 | } else { 75 | $errors[] = 'You forgot to enter your password.'; 76 | } 77 | if (empty($errors)) { // If it runs 78 | // Register the user in the database... 79 | // Make the query: 80 | $q = "INSERT INTO signup (userid, name, age, phone, address,email, password, registration_date) 81 | VALUES (' ', '$name', '$age', '$phone','$address','$email', '$p', NOW() )"; 82 | $result = @mysqli_query ($dbcon, $q); // Run the query. 83 | if ($result) { // If it runs 84 | header ("location: index.html"); 85 | exit(); 86 | } else { // If it did not run 87 | // Message: 88 | echo '

System Error

89 |

You could not be registered due to a system error. We apologize  90 | for any inconvenience.

'; 91 | // Debugging message: 92 | echo '

' . mysqli_error($dbcon) . '

Query: ' . $q . '

'; 93 | } // End of if ($result) 94 | mysqli_close($dbcon); // Close the database connection. 95 | // Include the footer and quit the script: 96 | include ('footer.php'); 97 | exit(); 98 | } else { // Report the errors. 99 | echo '

Error!

100 |

The following error(s) occurred:
'; 101 | foreach ($errors as $msg) { // Extract the errors from the array and echo them 102 | echo "

- $msg

\n"; 103 | } 104 | echo '

Please try again.


'; 105 | }// End of if (empty($errors)) 106 | } // End of the main Submit conditional. 107 | ?> 108 |
109 |
110 |

Register Users

111 |
112 |

113 |

115 |

116 |

118 |

119 |

121 |

122 |

124 |

125 |

127 |

128 |

130 |

131 |

133 |

134 |
135 |
136 |
137 |

138 |
139 |
140 | 141 | -------------------------------------------------------------------------------- /dental/edit_info: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Edit a record 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 |
15 |

Edit Record

16 | 17 | This page has been accessed in error

'; 28 | exit(); 29 | } 30 | 31 | require ('connect-mysql.php'); 32 | // Has the form been submitted? 33 | if ($_SERVER['REQUEST_METHOD'] == 'POST') 34 | { 35 | $errors = array(); 36 | 37 | 38 | // Look for the dental codes 39 | if (empty($_POST['name'])) { 40 | $errors[] = 'You forgot to enter your first name'; 41 | } else { 42 | $name = mysqli_real_escape_string($dbcon, trim($_POST['name'])); 43 | } 44 | 45 | 46 | 47 | 48 | 49 | // Look for the descriptions 50 | if (empty($_POST['age'])) { 51 | $errors[] = 'You forgot to enter your age.'; 52 | } else { 53 | $age = mysqli_real_escape_string($dbcon, trim($_POST['age'])); 54 | } 55 | 56 | 57 | // Look for the descriptions 58 | if (empty($_POST['phone'])) { 59 | $errors[] = 'You forgot to enter the phone no.'; 60 | } else { 61 | $phone = mysqli_real_escape_string($dbcon, trim($_POST['phone'])); 62 | } 63 | 64 | 65 | // Look for the descriptions 66 | if (empty($_POST['email'])) { 67 | $errors[] = 'You forgot to enter the email id.'; 68 | } else { 69 | $email = mysqli_real_escape_string($dbcon, trim($_POST['email'])); 70 | } 71 | 72 | 73 | // Look for the descriptions 74 | if (empty($_POST['address'])) { 75 | $errors[] = 'You forgot to enter the address.'; 76 | } else { 77 | $address = mysqli_real_escape_string($dbcon, trim($_POST['address'])); 78 | } 79 | 80 | 81 | // Look for the descriptions 82 | if (empty($_POST['password'])) { 83 | $errors[] = 'You forgot to enter the password.'; 84 | } else { 85 | $password = mysqli_real_escape_string($dbcon, trim($_POST['password'])); 86 | } 87 | 88 | 89 | 90 | if (empty($errors)) 91 | { // If everything is OK, make the update query 92 | // Check that the email is not already in the users table 93 | $q = "UPDATE signup SET name='$name', age='$age' , phone='$phone' ,email='$email' , address='$address',password='$password' 94 | WHERE $_SESSION['userid']=$id LIMIT 1"; 95 | $result = @mysqli_query ($dbcon, $q); 96 | if (mysqli_affected_rows($dbcon) == 1) { // If it ran OK 97 | // Echo a message if the edit was satisfactory 98 | echo '

The user has been edited.

'; 99 | } else { // Echo a message if the query failed 100 | echo '

The user could not be edited due to a system error. 101 | We apologize for any inconvenience.

'; // Error message. 102 | echo '

' . mysqli_error($dbcon) . '
Query: ' . $q . '

'; // Debugging message. 103 | } // End of if ($result) 104 | mysqli_close($dbcon); // Close the database connection. 105 | // Include the footer and quit the script: 106 | 107 | exit(); 108 | } else { // Display the errors. 109 | echo '

The following error(s) occurred:
'; 110 | 111 | foreach ($errors as $msg) { // Extract the errors from the array and echo them 112 | echo " - $msg
\n"; 113 | } 114 | echo '

Please try again.

'; 115 | } // End of if (empty($errors))section 116 | } // End of the conditionals 117 | // Select the record 118 | 119 | 120 | $q = "SELECT name,age,phone,email,address FROM dentist WHERE $_SESSION['userid']=$id"; 121 | $result = @mysqli_query ($dbcon, $q); 122 | if (mysqli_num_rows($result) == 1) 123 | { // Valid user ID, display the form. 124 | // Get the user's information 125 | $row = mysqli_fetch_array ($result, MYSQLI_NUM); 126 | // Create the form 127 | echo '
128 |

129 |

131 | 132 |

133 |

135 |

136 |

138 |

139 |

141 |

142 |

144 |

145 |

147 | 148 |

149 |
150 |
'; 151 | } 152 | else { // The record could not be validated 153 | echo '

This page has been accessed in error

'; 154 | } 155 | mysqli_close($dbcon); 156 | 157 | ?> 158 |
159 |
160 | 161 | -------------------------------------------------------------------------------- /dental/edit_dentistinfo.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Edit a record 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 |
15 |

16 | 17 | This page has been accessed in error

'; 28 | exit(); 29 | } 30 | 31 | require ('connect-mysql.php'); 32 | // Has the form been submitted? 33 | if ($_SERVER['REQUEST_METHOD'] == 'POST') 34 | { 35 | $errors = array(); 36 | 37 | 38 | // Look for the dental codes 39 | if (empty($_POST['name'])) { 40 | $errors[] = 'You forgot to enter your first name'; 41 | } else { 42 | $name = mysqli_real_escape_string($dbcon, trim($_POST['name'])); 43 | } 44 | 45 | 46 | 47 | 48 | 49 | // Look for the descriptions 50 | if (empty($_POST['age'])) { 51 | $errors[] = 'You forgot to enter your age.'; 52 | } else { 53 | $age = mysqli_real_escape_string($dbcon, trim($_POST['age'])); 54 | } 55 | 56 | 57 | // Look for the descriptions 58 | if (empty($_POST['phone'])) { 59 | $errors[] = 'You forgot to enter the phone no.'; 60 | } else { 61 | $phone = mysqli_real_escape_string($dbcon, trim($_POST['phone'])); 62 | } 63 | 64 | 65 | // Look for the descriptions 66 | if (empty($_POST['email'])) { 67 | $errors[] = 'You forgot to enter the email id.'; 68 | } else { 69 | $email = mysqli_real_escape_string($dbcon, trim($_POST['email'])); 70 | } 71 | 72 | 73 | // Look for the descriptions 74 | if (empty($_POST['address'])) { 75 | $errors[] = 'You forgot to enter the address.'; 76 | } else { 77 | $address = mysqli_real_escape_string($dbcon, trim($_POST['address'])); 78 | } 79 | 80 | 81 | // Look for the descriptions 82 | if (empty($_POST['dtype'])) { 83 | $errors[] = 'You forgot to enter the address.'; 84 | } else { 85 | $dtype = mysqli_real_escape_string($dbcon, trim($_POST['dtype'])); 86 | } 87 | 88 | 89 | 90 | if (empty($errors)) 91 | { // If everything is OK, make the update query 92 | // Check that the email is not already in the users table 93 | $q = "UPDATE dentist SET name='$name', age='$age' , phone='$phone' ,email='$email' , address='$address',dtype='$dtype' WHERE did=$id LIMIT 1"; 94 | $result = @mysqli_query ($dbcon, $q); 95 | if (mysqli_affected_rows($dbcon) == 1) { // If it ran OK 96 | // Echo a message if the edit was satisfactory 97 | echo '

The user has been edited.

'; 98 | } else { // Echo a message if the query failed 99 | echo '

The user could not be edited due to a system error. 100 | We apologize for any inconvenience.

'; // Error message. 101 | echo '

' . mysqli_error($dbcon) . '
Query: ' . $q . '

'; // Debugging message. 102 | } // End of if ($result) 103 | mysqli_close($dbcon); // Close the database connection. 104 | // Include the footer and quit the script: 105 | 106 | exit(); 107 | } else { // Display the errors. 108 | echo '

The following error(s) occurred:
'; 109 | 110 | foreach ($errors as $msg) { // Extract the errors from the array and echo them 111 | echo " - $msg
\n"; 112 | } 113 | echo '

Please try again.

'; 114 | } // End of if (empty($errors))section 115 | } // End of the conditionals 116 | // Select the record 117 | 118 | 119 | $q = "SELECT did,name,age,phone,email,address,dtype FROM dentist WHERE did=$id"; 120 | $result = @mysqli_query ($dbcon, $q); 121 | if (mysqli_num_rows($result) == 1) 122 | { // Valid user ID, display the form. 123 | // Get the user's information 124 | $row = mysqli_fetch_array ($result, MYSQLI_NUM); 125 | // Create the form 126 | echo '
127 |

128 |

130 | 131 |

132 |

134 |

135 |

137 |

138 |

140 |

141 |

143 | 144 | 145 |

150 | 151 |

152 | 153 |
'; 154 | } 155 | else { // The record could not be validated 156 | echo '

This page has been accessed in error

'; 157 | } 158 | mysqli_close($dbcon); 159 | 160 | ?> 161 |
162 |
163 | 164 | -------------------------------------------------------------------------------- /dental/edit_info.php: -------------------------------------------------------------------------------- 1 | 12 | 13 | 14 | 15 | Edit your account 16 | 17 | 18 | 27 | 28 | 29 |
30 | 31 | 32 | 33 |
34 |

Edit Your Account

35 |

For your own security please remember to logout

36 | This page has been accessed in error.

'; 45 | include ('includes/footer.php'); 46 | exit(); 47 | } 48 | require ('mysqli_connect.php'); 49 | // Has the form been submitted? 50 | if ($_SERVER['REQUEST_METHOD'] == 'POST') { 51 | $errors = array(); 52 | // Trim the title #2 53 | $tle = trim($_POST['title']); 54 | // Strip HTML and apply escaping 55 | $stripped = mysqli_real_escape_string($dbcon, strip_tags($tle)); 56 | // Get string lengths 57 | $strLen = mb_strlen($stripped, 'utf8'); 58 | // Check stripped string 59 | if( $strlen < 1 ) { 60 | $errors[] = 'You forgot to enter your title.'; 61 | }else{ 62 | $title = $stripped; 63 | } 64 | // Trim the first name 65 | $name = trim($_POST['fname']); 66 | // Strip HTML and apply escaping 67 | $stripped = mysqli_real_escape_string($dbcon, strip_tags($name)); 68 | // Get string lengths 69 | $strlen = mb_strlen($stripped, 'utf8'); 70 | // Check stripped string 71 | if( $strLen < 1 ) { 72 | $errors[] = 'You forgot to enter your first name.'; 73 | }else{ 74 | $fn = $stripped; 75 | } 76 | // Trim the last name 77 | $lnme = trim($_POST['lname']); 78 | // Strip HTML and apply escaping 79 | $stripped = mysqli_real_escape_string($dbcon, strip_tags($lnme)); 80 | // Get string lengths 81 | $strlen = mb_strlen($stripped, 'utf8'); 82 | // Check stripped string 83 | if( $strlen < 1 ) { 84 | $errors[] = 'You forgot to enter your last name.'; 85 | }else{ 86 | $ln = $stripped; 87 | } 88 | //Set the email variable to FALSE #3 89 | $e = FALSE; 90 | // Check that an email address has been entered 91 | if (empty($_POST['email'])) { 92 | $errors[] = 'You forgot to enter your email address.'; 93 | } 94 | //remove spaces from beginning and end of the email address and validate it 95 | if (filter_var((trim($_POST['email'])), FILTER_VALIDATE_EMAIL)) { 96 | //A valid email address is then registered 97 | $e = mysqli_real_escape_string($dbcon, (trim($_POST['email']))); 98 | }else{$errors[] = 'Your email is not in the correct format.'; 99 | } 100 | // Trim the first address 101 | $add1 = trim($_POST['addr1']); 102 | // Strip HTML and apply escaping 103 | $stripped = mysqli_real_escape_string($dbcon, strip_tags($add1)); 104 | // Get string lengths 105 | $strlen = mb_strlen($stripped, 'utf8'); 106 | // Check stripped string 107 | if( $strlen < 1 ) { 108 | $errors[] = 'You forgot to enter your address.'; 109 | }else{ 110 | $addr1 = $stripped; 111 | } 112 | // Trim the second address 113 | $addr2 = trim($_POST['addr2']); 114 | // Strip HTML and apply escaping 115 | $stripped = mysqli_real_escape_string($dbcon, strip_tags($addr2)); 116 | // Get string lengths 117 | $strlen = mb_strlen($stripped, 'utf8'); 118 | // Check stripped string 119 | if( $strLen < 1 ) { 120 | $ad2=NULL; 121 | }else{ 122 | $addr2 = $stripped; 123 | } 124 | // Trim the city 125 | $ct = trim($_POST['city']); 126 | // Strip HTML and apply escaping 127 | $stripped = mysqli_real_escape_string($dbcon, strip_tags($ct)); 128 | // Get string lengths 129 | $strlen = mb_strlen($stripped, 'utf8'); 130 | // Check stripped string 131 | if( $strlen < 1 ) { 132 | $errors[] = 'You forgot to enter your city.'; 133 | }else{ 134 | $city = $stripped; 135 | } 136 | // Trim the county 137 | $conty = trim($_POST['county']); 138 | // Strip HTML and apply escaping 139 | $stripped = mysqli_real_escape_string($dbcon, strip_tags($conty)); 140 | // Get string lengths 141 | $strlen = mb_strlen($stripped, 'utf8'); 142 | // Check stripped string 143 | if( $strlen < 1 ) { 144 | $errors[] = 'You forgot to enter your county.'; 145 | }else{ 146 | $county = $stripped; 147 | } 148 | // Trim the post code 149 | $pcod = trim($_POST['pcode']); 150 | // Strip HTML and apply escaping 151 | $stripped = mysqli_real_escape_string($dbcon, strip_tags($pcod)); 152 | // Get string lengths 153 | $strlen = mb_strlen($stripped, 'utf8'); 154 | // Check stripped string 155 | if( $strlen < 1 ) { 156 | $errors[] = 'You forgot to enter your county.'; 157 | }else{ 158 | $pcode = $stripped; 159 | } 160 | // Has a phone number been entered? #4 161 | if (empty($_POST['phone'])){ 162 | $ph=($_POST['phone']); 163 | } 164 | elseif (!empty($_POST['phone'])) { 165 | //Remove spaces, hyphens, letters and brackets 166 | $phone = preg_replace('/\D+/', '', ($_POST['phone'])); 167 | $ph=$phone; 168 | } 169 | if (empty($errors)) { // If everything's OK 170 | // make the query 171 | $q = "SELECT user_id FROM users WHERE lname='$ln' AND user_id != $id"; 172 | $result = @mysqli_query($dbcon, $q); 173 | if (mysqli_num_rows($result) == 0) { 174 | // Make the update query #5 175 | $q = "UPDATE users SET title='$title', fname='$fn', lname='$ln', email='$e',  176 | addr1='$addr1', addr2='$addr2', city='$city', county='$county', pcode='$pcode',  177 | phone='$phone' WHERE user_id=$id LIMIT 1"; 178 | $result = @mysqli_query ($dbcon, $q); 179 | if (mysqli_affected_rows($dbcon) == 1) { // If the query was successful 180 | // Echo a message if the edit was satisfactory 181 | echo '

Your Account has Been Updated.

'; 182 | } else { // Echo a message if the query failed 183 | echo '

The user could not be edited due to a system error.  184 | We apologize for any inconvenience.

'; // Message 185 | echo '

' . mysqli_error($dbcon) . '
Query: ' . $q . '

'; // Debugging message 186 | } 187 | } 188 | } else { // Display the errors 189 | echo '

The following error(s) occurred:
'; 190 | foreach ($errors as $msg) { // Echo each error 191 | echo " - $msg
\n"; 192 | } 193 | echo '

Please try again.

'; 194 | } // End of the if (empty($errors))section 195 | } // End of the conditionals 196 | // Select the member's information #6 197 | $q = "SELECT title, fname, lname, email, addr1, addr2, city, county, pcode, phone  198 | FROM users WHERE user_id=$id"; 199 | $result = @mysqli_query ($dbcon, $q); 200 | if (mysqli_num_rows($result) == 1) { // If the user id is valid, display the form 201 | // Get the member's information 202 | $row = mysqli_fetch_array ($result, MYSQLI_NUM); 203 | // Create the form #7 204 | echo '
205 |

206 |

208 |

209 |

211 |

212 |

214 |

215 |

217 |

218 |

220 |

221 |

223 |

224 |

226 |

227 |

229 |

230 |

232 |

233 |

235 |


236 | 237 |
'; 238 | } else { // The user could not be validated 239 | echo '

This page has been accessed in error.

'; 240 | } 241 | mysqli_close($dbcon); 242 | include ('includes/footer.php'); 243 | ?> 244 |
245 |
246 | 247 | -------------------------------------------------------------------------------- /dentalclinic.sql: -------------------------------------------------------------------------------- 1 | -- phpMyAdmin SQL Dump 2 | -- version 4.4.12 3 | -- http://www.phpmyadmin.net 4 | -- 5 | -- Host: 127.0.0.1 6 | -- Generation Time: Jul 17, 2017 at 10:43 PM 7 | -- Server version: 5.6.25 8 | -- PHP Version: 5.6.11 9 | 10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 11 | SET time_zone = "+00:00"; 12 | 13 | 14 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 15 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 16 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 17 | /*!40101 SET NAMES utf8mb4 */; 18 | 19 | -- 20 | -- Database: `dentalclinic` 21 | -- 22 | 23 | -- -------------------------------------------------------- 24 | 25 | -- 26 | -- Table structure for table `adminreg` 27 | -- 28 | 29 | CREATE TABLE IF NOT EXISTS `adminreg` ( 30 | `ser` int(3) NOT NULL, 31 | `regdate` varchar(20) NOT NULL 32 | ) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=latin1; 33 | 34 | -- 35 | -- Dumping data for table `adminreg` 36 | -- 37 | 38 | INSERT INTO `adminreg` (`ser`, `regdate`) VALUES 39 | (1, '30 November,2015'), 40 | (2, '1 December,2015'), 41 | (34, '2 December,2015'), 42 | (35, '3 December,2015'), 43 | (36, '4 December,2015'), 44 | (37, '5 December,2015'), 45 | (38, '6 December,2015'), 46 | (39, '7 December,2015'), 47 | (40, '8 December,2015'), 48 | (41, '9 December,2015'), 49 | (42, '10 December,2015'), 50 | (43, '11 December,2015'), 51 | (44, '12 December,2015'), 52 | (45, '13 December,2015'), 53 | (46, '14 December,2015'), 54 | (48, '15 December,2015'), 55 | (49, '16 December,2015'), 56 | (51, '17 December,2015'), 57 | (52, '18 December,2015'), 58 | (53, '19 December,2015'), 59 | (54, '20 December,2015'), 60 | (55, '21 December,2015'), 61 | (56, '22 December,2015'), 62 | (57, '23 December,2015'), 63 | (58, '24 December,2015'), 64 | (59, '25 December,2015'), 65 | (60, '26 December,2015'), 66 | (61, '27 December,2015'), 67 | (62, '28 December,2015'), 68 | (63, '29 December,2015'), 69 | (65, '30 December,2015'); 70 | 71 | -- -------------------------------------------------------- 72 | 73 | -- 74 | -- Table structure for table `appointement` 75 | -- 76 | 77 | CREATE TABLE IF NOT EXISTS `appointement` ( 78 | `ser` tinyint(4) NOT NULL, 79 | `userid` tinyint(3) NOT NULL, 80 | `code` varchar(25) NOT NULL, 81 | `dentist` varchar(25) NOT NULL, 82 | `regdate` varchar(20) NOT NULL, 83 | `regtime` varchar(5) NOT NULL, 84 | `status` varchar(15) NOT NULL, 85 | `d` int(5) NOT NULL 86 | ) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=latin1; 87 | 88 | -- 89 | -- Dumping data for table `appointement` 90 | -- 91 | 92 | INSERT INTO `appointement` (`ser`, `userid`, `code`, `dentist`, `regdate`, `regtime`, `status`, `d`) VALUES 93 | (5, 30, '100-Root Canal', '2-Dileep Shivani', '30 November,2015', '2 PM', 'Confirmed', 2), 94 | (6, 0, '103-braces', '2-Dileep Shivani', '19 December,2015', '12 PM', 'Cancelled', 2), 95 | (8, 0, '103-braces', '2-Dileep Shivani', '21 December,2015', '1 PM', 'Not Confirmed', 2), 96 | (9, 0, '103-braces', '2-Dileep Shivani', '1 December,2015', '3 PM', 'Not Confirmed', 2), 97 | (16, 7, '107-Partial Denture', '5-shweta narang', '24 December,2015', '9 AM', 'Not Confirmed', 5), 98 | (20, 7, '106-gum clean', '2-Dileep Shivani', '30 November,2015', '11 AM', 'Not Confirmed', 2), 99 | (21, 7, '100-Root Canal', '1-Sumit Narang', '30 November,2015', '4 pm', 'Not Confirmed', 1), 100 | (22, 7, '103-braces', '7-dentist2', '13 December,2015', '3 PM', 'Not Confirmed', 7), 101 | (23, 7, '108-Tooth Replacement', '4-suyash', '14 December,2015', '3 PM', 'Confirmed', 0); 102 | 103 | -- -------------------------------------------------------- 104 | 105 | -- 106 | -- Table structure for table `clinic` 107 | -- 108 | 109 | CREATE TABLE IF NOT EXISTS `clinic` ( 110 | `cid` tinyint(1) NOT NULL, 111 | `cname` varchar(25) NOT NULL, 112 | `location` varchar(60) NOT NULL, 113 | `openhr` varchar(6) NOT NULL, 114 | `closehr` varchar(6) NOT NULL, 115 | `rooms` tinyint(3) NOT NULL 116 | ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; 117 | 118 | -- 119 | -- Dumping data for table `clinic` 120 | -- 121 | 122 | INSERT INTO `clinic` (`cid`, `cname`, `location`, `openhr`, `closehr`, `rooms`) VALUES 123 | (1, 'Dental Clinic', 'Mysore Road, Bangalore', '9 AM', '7 PM', 30); 124 | 125 | -- -------------------------------------------------------- 126 | 127 | -- 128 | -- Table structure for table `dentalcode` 129 | -- 130 | 131 | CREATE TABLE IF NOT EXISTS `dentalcode` ( 132 | `id` int(3) NOT NULL, 133 | `code` smallint(4) NOT NULL, 134 | `unitcost` varchar(7) NOT NULL, 135 | `description` varchar(30) NOT NULL 136 | ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1; 137 | 138 | -- 139 | -- Dumping data for table `dentalcode` 140 | -- 141 | 142 | INSERT INTO `dentalcode` (`id`, `code`, `unitcost`, `description`) VALUES 143 | (1, 100, 'Rs 100', 'Root Canal'), 144 | (2, 102, 'Rs 112', 'teeth clean'), 145 | (3, 103, 'Rs 250', 'braces'), 146 | (6, 106, 'Rs 222', 'gum clean'), 147 | (7, 107, 'Rs 420', 'Partial Denture'), 148 | (8, 108, 'Rs 500', 'Tooth Replacement'), 149 | (9, 109, 'Rs 150', 'Laser Treatment'); 150 | 151 | -- -------------------------------------------------------- 152 | 153 | -- 154 | -- Table structure for table `dentist` 155 | -- 156 | 157 | CREATE TABLE IF NOT EXISTS `dentist` ( 158 | `did` smallint(6) NOT NULL, 159 | `name` varchar(20) NOT NULL, 160 | `age` tinyint(3) NOT NULL, 161 | `sex` char(1) NOT NULL, 162 | `phone` bigint(10) NOT NULL, 163 | `email` varchar(30) NOT NULL, 164 | `address` text NOT NULL, 165 | `dtype` varchar(20) NOT NULL, 166 | `registration_date` datetime NOT NULL 167 | ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1; 168 | 169 | -- 170 | -- Dumping data for table `dentist` 171 | -- 172 | 173 | INSERT INTO `dentist` (`did`, `name`, `age`, `sex`, `phone`, `email`, `address`, `dtype`, `registration_date`) VALUES 174 | (1, 'Sumit Narang', 45, 'm', 9035396702, 'sumitnarangwp@gmail.com', 'magestic,bangalore', 'Permanent', '2015-11-10 13:56:20'), 175 | (2, 'Dileep Shivani', 33, 'f', 8971215561, 'dileep@gmail.com', 'Kanpur', 'Permanent', '2015-11-10 13:58:35'), 176 | (4, 'suyash', 35, 'm', 9035396702, 'suyash', 'nehru place,delhi', 'Permanent', '2015-11-14 10:16:05'), 177 | (5, 'shweta narang', 37, 'f', 8971215561, 'shweta@gmail.com', 'patna', 'Permanent', '2015-11-14 10:16:45'), 178 | (6, 'dentist1', 30, 'm', 9082137331, 'dentist1@gmail.com', 'jaynagar', 'Permanent', '2015-11-14 12:05:54'), 179 | (7, 'dentist2', 34, 'm', 8983433434, 'dentist2@gmail.com', 'malleswaram,bangalore', 'Trainee', '2015-11-14 12:06:55'), 180 | (8, 'dentist3', 34, 'f', 8767697863, 'dentist3@gmail.com', 'basavangudi,bangalore', 'Permanent', '2015-11-14 12:07:39'), 181 | (9, 'dentist4', 43, 'f', 8959565865, 'dentist4@gmail.com', 'kengeri,bangalore', 'Visiting', '2015-11-14 12:08:23'); 182 | 183 | -- -------------------------------------------------------- 184 | 185 | -- 186 | -- Table structure for table `signup` 187 | -- 188 | 189 | CREATE TABLE IF NOT EXISTS `signup` ( 190 | `userid` smallint(5) NOT NULL, 191 | `user_level` tinyint(1) NOT NULL, 192 | `name` varchar(30) NOT NULL, 193 | `phone` bigint(10) unsigned NOT NULL, 194 | `age` tinyint(3) NOT NULL, 195 | `address` text NOT NULL, 196 | `email` varchar(30) NOT NULL, 197 | `password` varchar(20) NOT NULL, 198 | `registration_date` datetime NOT NULL 199 | ) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=latin1; 200 | 201 | -- 202 | -- Dumping data for table `signup` 203 | -- 204 | 205 | INSERT INTO `signup` (`userid`, `user_level`, `name`, `phone`, `age`, `address`, `email`, `password`, `registration_date`) VALUES 206 | (1, 1, 'summy', 7777777777, 21, 'mysore road,bangalore-56059', 'sumitnarang76@gmail.com', 'sumit', '2015-11-10 09:10:48'), 207 | (2, 0, 'dileep', 8983792929, 22, 'bangalore', 'dileep@gmail.com', 'dileep', '2015-11-10 09:28:48'), 208 | (6, 0, 'sumit narang', 9035396702, 21, 'mysore road,bangalore-56059', 'sumitnarang100@gmail.com', 'sum', '2015-11-13 13:00:24'), 209 | (7, 0, 'shreyans N', 8983792929, 23, 'bangalore', 'shreyans@gmail.com', 'shreyans', '2015-11-14 09:03:02'), 210 | (8, 0, 'saurav', 8875431907, 27, 'New delhi', 'saurav@gmail.com', 'saurav', '2015-11-14 11:58:33'), 211 | (9, 0, 'ganesh', 7689543210, 52, 'nehru place,kota', 'ganesh@gmail.com', 'ganesh', '2015-11-14 11:59:57'), 212 | (10, 0, 'manju', 8675431907, 44, 'patna', 'manju@gmail.com', 'manju', '2015-11-14 12:00:53'), 213 | (11, 0, 'supreeth', 8965320054, 34, 'rr nagar,bangalore', 'supreet@gmail.com', 'supreeth', '2015-11-14 12:02:03'), 214 | (12, 0, 'amith', 7654565890, 44, 'magestic,bangalore', 'amith@gmail.com', 'amith', '2015-11-14 12:03:24'), 215 | (13, 0, 'suraj', 9812311212, 20, 'hebbal,bangalore', 'suraj@gmail.com', 'suraj', '2015-11-14 12:04:28'), 216 | (19, 0, 'asas', 9999999999, 45, 'gandhinagar', 'a@gmail.com', '12', '2015-11-30 13:05:01'), 217 | (29, 0, 'ss', 9035396702, 76, 'ff', 'sumitnarang76@gmail.com', 'k', '2016-11-09 12:44:55'), 218 | (30, 0, 'ss', 9035396702, 23, 'ss', 'sumitnarang100@gmail.com', 'd', '2016-11-09 12:48:00'); 219 | 220 | -- -------------------------------------------------------- 221 | 222 | -- 223 | -- Table structure for table `staff` 224 | -- 225 | 226 | CREATE TABLE IF NOT EXISTS `staff` ( 227 | `sid` smallint(3) NOT NULL, 228 | `name` varchar(20) NOT NULL, 229 | `age` tinyint(3) NOT NULL, 230 | `sex` char(1) NOT NULL, 231 | `phone` bigint(10) NOT NULL, 232 | `email` varchar(30) NOT NULL, 233 | `address` text NOT NULL, 234 | `registration_date` datetime NOT NULL 235 | ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; 236 | 237 | -- 238 | -- Dumping data for table `staff` 239 | -- 240 | 241 | INSERT INTO `staff` (`sid`, `name`, `age`, `sex`, `phone`, `email`, `address`, `registration_date`) VALUES 242 | (1, 'suresh', 35, 'm', 8971215561, 'suresh@gmail.com', 'manipal', '2015-11-14 00:22:16'); 243 | 244 | -- 245 | -- Indexes for dumped tables 246 | -- 247 | 248 | -- 249 | -- Indexes for table `adminreg` 250 | -- 251 | ALTER TABLE `adminreg` 252 | ADD PRIMARY KEY (`ser`); 253 | 254 | -- 255 | -- Indexes for table `appointement` 256 | -- 257 | ALTER TABLE `appointement` 258 | ADD PRIMARY KEY (`ser`); 259 | 260 | -- 261 | -- Indexes for table `clinic` 262 | -- 263 | ALTER TABLE `clinic` 264 | ADD PRIMARY KEY (`cid`); 265 | 266 | -- 267 | -- Indexes for table `dentalcode` 268 | -- 269 | ALTER TABLE `dentalcode` 270 | ADD PRIMARY KEY (`id`); 271 | 272 | -- 273 | -- Indexes for table `dentist` 274 | -- 275 | ALTER TABLE `dentist` 276 | ADD PRIMARY KEY (`did`); 277 | 278 | -- 279 | -- Indexes for table `signup` 280 | -- 281 | ALTER TABLE `signup` 282 | ADD PRIMARY KEY (`userid`); 283 | 284 | -- 285 | -- Indexes for table `staff` 286 | -- 287 | ALTER TABLE `staff` 288 | ADD PRIMARY KEY (`sid`); 289 | 290 | -- 291 | -- AUTO_INCREMENT for dumped tables 292 | -- 293 | 294 | -- 295 | -- AUTO_INCREMENT for table `adminreg` 296 | -- 297 | ALTER TABLE `adminreg` 298 | MODIFY `ser` int(3) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=66; 299 | -- 300 | -- AUTO_INCREMENT for table `appointement` 301 | -- 302 | ALTER TABLE `appointement` 303 | MODIFY `ser` tinyint(4) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=24; 304 | -- 305 | -- AUTO_INCREMENT for table `clinic` 306 | -- 307 | ALTER TABLE `clinic` 308 | MODIFY `cid` tinyint(1) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2; 309 | -- 310 | -- AUTO_INCREMENT for table `dentalcode` 311 | -- 312 | ALTER TABLE `dentalcode` 313 | MODIFY `id` int(3) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=10; 314 | -- 315 | -- AUTO_INCREMENT for table `dentist` 316 | -- 317 | ALTER TABLE `dentist` 318 | MODIFY `did` smallint(6) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=10; 319 | -- 320 | -- AUTO_INCREMENT for table `signup` 321 | -- 322 | ALTER TABLE `signup` 323 | MODIFY `userid` smallint(5) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=31; 324 | -- 325 | -- AUTO_INCREMENT for table `staff` 326 | -- 327 | ALTER TABLE `staff` 328 | MODIFY `sid` smallint(3) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2; 329 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 330 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 331 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 332 | --------------------------------------------------------------------------------