Appointment Dates Information
15 | 16 | 17 | 30 |The current users could not be retrieved. We apologize 45 | for any inconvenience.
'; 46 | // Debug message: 47 | echo '' . mysqli_error($dbcon) . '
Query: ' . $q . '
├── 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 |
Dental Clinic
16 | Dental Clinic
13 |
14 |
10 |
15 |
21 |
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 | 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 |The current users could not be retrieved. We apologize 45 | for any inconvenience.
'; 46 | // Debug message: 47 | echo '' . mysqli_error($dbcon) . '
Query: ' . $q . '
Dental Clinic
13 |The current users could not be retrieved. We apologize 48 | for any inconvenience.
'; 49 | // Debug message: 50 | echo '' . mysqli_error($dbcon) . '
Query: ' . $q . '
Dental Clinic
13 |The current users could not be retrieved. We apologize 50 | for any inconvenience.
'; 51 | // Debug message: 52 | echo '' . mysqli_error($dbcon) . '
Query: ' . $q . '
The current users could not be retrieved. We apologize 48 | for any inconvenience.
'; 49 | // Debug message: 50 | echo '' . mysqli_error($dbcon) . '
Query: ' . $q . '
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 |The current users could not be retrieved. We apologize 54 | for any inconvenience.
'; 55 | // Debug message: 56 | echo '' . mysqli_error($dbcon) . '
Query: ' . $q . '
Dental Clinic
13 |The current users could not be retrieved. We apologize 50 | for any inconvenience.
'; 51 | // Debug message: 52 | echo '' . mysqli_error($dbcon) . '
Query: ' . $q . '
The current users could not be retrieved. We apologize 46 | for any inconvenience.
'; 47 | // Debug message: 48 | echo '' . mysqli_error($dbcon) . '
Query: ' . $q . '
Dental Clinic
18 |The current users could not be retrieved. We apologize 57 | for any inconvenience.
'; 58 | // Debug message: 59 | echo '' . mysqli_error($dbcon) . '
Query: ' . $q . '
Dental Clinic
18 |The current users could not be retrieved. We apologize 58 | for any inconvenience.
'; 59 | // Debug message: 60 | echo '' . mysqli_error($dbcon) . '
Query: ' . $q . '
The current users could not be retrieved. We apologize 48 | for any inconvenience.
'; 49 | // Debug message: 50 | echo '' . mysqli_error($dbcon) . '
Query: ' . $q . '
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 |The record could not be deleted.
Probably
41 | because it does not exist or due to a system error.
' . mysqli_error($dbcon ) . '
Query: ' . $q . '
This page has been accessed in error.
'; 65 | echo ''; 66 | } 67 | } // End of the main conditional section 68 | mysqli_close($dbcon ); 69 | 70 | ?> 71 |
The record could not be deleted.
Probably
41 | because it does not exist or due to a system error.
' . mysqli_error($dbcon ) . '
Query: ' . $q . '
This page has been accessed in error.
'; 65 | echo ''; 66 | } 67 | } // End of the main conditional section 68 | mysqli_close($dbcon ); 69 | 70 | ?> 71 |
The record could not be deleted.
Probably
41 | because it does not exist or due to a system error.
' . mysqli_error($dbcon ) . '
Query: ' . $q . '
This page has been accessed in error.
'; 65 | echo ''; 66 | } 67 | } // End of the main conditional section 68 | mysqli_close($dbcon ); 69 | 70 | ?> 71 |
The current users could not be retrieved. We apologize 50 | for any inconvenience.
'; 51 | // Debug message: 52 | echo '' . mysqli_error($dbcon) . '
Query: ' . $q . '
Dental Clinic
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
Please try again.
'; 76 | } 77 | mysqli_close($dbcon); 78 | } // End of SUBMIT conditional. 79 | ?> 80 | 81 | 82 |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 . '
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 ''; 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 |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 . '
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 "This page has been accessed in error
'; 107 | } 108 | mysqli_close($dbcon); 109 | 110 | ?> 111 |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 . '
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 ''; 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 |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 . '
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 '
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 . '
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 '
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 . '
Dental Clinic
64 |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 . '
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 ''; 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 |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 . '
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 ''; 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 |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 . '
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 '
Dental Clinic
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 '
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 . '
The following error(s) occurred:
';
101 | foreach ($errors as $msg) { // Extract the errors from the array and echo them
102 | echo "
- $msg
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 . '
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 ''; 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 |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 . '
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 ''; 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 |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 . '
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 ''; 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 |