├── README.md
├── delete_student.html
├── delete_student.php
├── home.html
├── modify_student.html
├── modify_student.php
├── new_student.html
├── read.php
└── save.php
/README.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dinesh062005/html/545822b2497ccde7736fc5fe9fd322e587fe6b39/README.md
--------------------------------------------------------------------------------
/delete_student.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Document
7 |
18 |
19 |
20 |
21 | Student Details
22 |
23 |
24 |
31 |
32 |
33 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/delete_student.php:
--------------------------------------------------------------------------------
1 | ';
8 |
9 | $name=$_POST['name'];
10 |
11 | $sql="delete from stu_det where name='$name'";
12 | $res=$conn->query($sql);
13 | if($res==TRUE)
14 | {
15 | echo 'Deletion Success';
16 | }
17 | else
18 | {
19 | echo 'Error';
20 | }
21 |
22 | $conn->close();
23 |
24 | ?>
--------------------------------------------------------------------------------
/home.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Document
7 |
19 |
20 |
21 |
22 | Student Details
23 |
24 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/modify_student.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Document
7 |
18 |
19 |
20 |
21 | Student Details
22 |
23 |
24 |
31 |
32 |
33 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/modify_student.php:
--------------------------------------------------------------------------------
1 | query($sql);
15 | if($res==TRUE)
16 | {
17 | echo 'Data updation Success';
18 | }
19 | else
20 | {
21 | echo 'Error';
22 | }
23 |
24 | $conn->close();
25 | ?>
--------------------------------------------------------------------------------
/new_student.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Document
7 |
18 |
19 |
20 |
21 |
22 | Student Details
23 |
24 |
25 |
32 |
33 |
34 | New Student
35 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/read.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Document
7 |
18 |
19 |
20 |
21 | Student Details
22 |
23 |
24 |
31 |
32 |
33 |
34 | query($sql);
44 | if($res->num_rows>0)
45 | {
46 | echo "";
47 | while($row=$res->fetch_assoc())
48 | {
49 | echo "";
50 | echo ''.$row['id'].' | ';
51 | echo ''.$row['name'].' | ';
52 | echo ''.$row['contact'].' | ';
53 | echo ''.$row['address'].' | ';
54 | echo "
";
55 | }
56 | echo "
";
57 | }
58 | else
59 | {
60 | echo 'Record is empty...';
61 | }
62 |
63 | $conn->close();
64 | ?>
65 |
66 |
--------------------------------------------------------------------------------
/save.php:
--------------------------------------------------------------------------------
1 | query($sql);
16 |
17 | if($res==TRUE)
18 | {
19 | echo '
Data insertion Success';
20 | }
21 | else
22 | {
23 | echo 'Error';
24 | }
25 |
26 | $conn->close();
27 | ?>
--------------------------------------------------------------------------------