├── README.md
├── home.html
├── modify.html
├── modify.php
├── new_student.html
├── read.html
├── read.php
├── remove.html
├── remove.php
└── save.php
/README.md:
--------------------------------------------------------------------------------
1 | STUDENT_DETAILS
2 |
--------------------------------------------------------------------------------
/home.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Document
9 |
21 |
22 |
23 |
24 |
25 |
26 |
Student Details
27 |
28 |
29 |
30 |
31 |
32 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/modify.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Document
8 |
20 |
21 |
22 |
23 |
24 |
Student Details
25 |
26 |
33 |
34 |
35 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/modify.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Document
8 |
20 |
21 |
22 |
23 |
24 |
25 |
Student Details
26 |
27 |
28 |
29 |
30 |
31 |
38 |
39 |
40 | ';
48 |
49 | $sid=$_POST['sid'];
50 | $sna=$_POST['sna'];
51 | $sph=$_POST['sph'];
52 | $sadd=$_POST['sadd'];
53 |
54 | $sql="update stud_det set SNAME='$sna',SPHONE='$sph' ,SADDRESS='$sadd' where SID ='$sid'";
55 |
56 | $res=$conn->query($sql);
57 |
58 | if($res==TRUE)
59 | {
60 | echo 'Data updation Success...';
61 | }
62 | else
63 | {
64 | echo 'Error...';
65 | }
66 |
67 | $conn->close();
68 | ?>
69 |
70 |
71 |
--------------------------------------------------------------------------------
/new_student.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Document
9 |
21 |
22 |
23 |
24 |
25 |
Student Details
26 |
27 |
34 |
35 |
36 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/read.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Document
8 |
20 |
21 |
22 |
23 |
24 |
Course Details
25 |
26 |
27 |
28 |
35 |
36 | 1 | php | 15000 |
2 | python | 20000 |
4 | mysql | 10000 |
37 |
38 |
--------------------------------------------------------------------------------
/read.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Document
7 |
19 |
20 |
21 |
22 |
23 |
Student Details
24 |
25 |
26 |
27 |
34 |
35 | ';
44 |
45 | $sql="select * from stud_det";
46 |
47 | $res=$conn->query($sql);
48 | if($res->num_rows>0)
49 | {
50 | echo "
";
51 |
52 | while($row=$res->fetch_assoc())
53 | {
54 | echo "";
55 | echo ''.$row['SID'].' | ';
56 | echo ''.$row['SNAME'].' | ';
57 | echo ''.$row['SPHONE'].' | ';
58 | echo ''.$row['SADDRESS'].' | ';
59 | echo "
";
60 | }
61 | echo "
";
62 | }
63 | else
64 | {
65 | echo 'Record is empty...';
66 | }
67 |
68 | $conn->close();
69 | ?>
70 |
71 |
72 |
--------------------------------------------------------------------------------
/remove.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Document
9 |
21 |
22 |
23 |
24 |
25 |
Student Details
26 |
27 |
34 |
35 |
36 |
44 |
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/remove.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Document
8 |
20 |
21 |
22 |
23 |
24 |
25 |
Student Details
26 |
27 |
28 |
29 |
30 |
31 |
38 |
39 |
40 | ';
50 |
51 | $id=$_POST['sid'];
52 |
53 | $sql="delete from stud_det where SID='$id'";
54 | $res=$conn->query($sql);
55 | if($res==TRUE)
56 | {
57 | echo 'Data Deletion Success...';
58 | }
59 | else
60 | {
61 | echo 'Error...';
62 | }
63 |
64 | $conn->close();
65 |
66 | ?>
67 |
68 |
69 |
--------------------------------------------------------------------------------
/save.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Document
8 |
20 |
21 |
22 |
23 |
24 |
25 |
Student Details
26 |
27 |
28 |
29 |
30 |
31 |
38 |
39 |
40 | query($sql);
58 |
59 | if($res==TRUE)
60 | {
61 | echo '
Data insertion Success...';
62 | }
63 | else
64 | {
65 | echo 'Error...';
66 | }
67 |
68 | $conn->close();
69 | ?>
70 |
71 |
72 |
--------------------------------------------------------------------------------