├── README.md
└── PHP&MYSQL - Copy
├── removeSTU.php
├── modifystudent.php
├── newstudent.php
├── studenthome.html
├── removestudent.html
├── newstudent.html
├── modifystudent.html
└── viewstudent.php
/README.md:
--------------------------------------------------------------------------------
1 | # Minorproject
--------------------------------------------------------------------------------
/PHP&MYSQL - Copy/removeSTU.php:
--------------------------------------------------------------------------------
1 | ';
11 |
12 | $id=$_POST['sid'];
13 |
14 | $sql="delete from stud_det where sid='$id'";
15 | $res=$conn->query($sql);
16 | if($res==TRUE)
17 | {
18 | echo 'Data Deletion Success...';
19 | }
20 | else
21 | {
22 | echo 'Error...';
23 | }
24 |
25 | $conn->close();
26 |
27 | ?>
--------------------------------------------------------------------------------
/PHP&MYSQL - Copy/modifystudent.php:
--------------------------------------------------------------------------------
1 | ';
9 | $sid=$_POST['sid'];
10 | $sna=$_POST['sna'];
11 | $sph=$_POST['sph'];
12 | $sadd=$_POST['sadd'];
13 |
14 | $sql="update stud_det set sname='$sna',scon_no='$sph',sadd='$sadd'where sid='$sid'";
15 |
16 | $res=$conn->query($sql);
17 |
18 | if($res==TRUE)
19 | {
20 | echo 'Data updation Success...';
21 | }
22 | else
23 | {
24 | echo 'Error...';
25 | }
26 |
27 | $conn->close();
28 | ?>
--------------------------------------------------------------------------------
/PHP&MYSQL - Copy/newstudent.php:
--------------------------------------------------------------------------------
1 | query($sql);
18 |
19 | if($res==TRUE)
20 | {
21 | echo '
Data insertion Success...';
22 | }
23 | else
24 | {
25 | echo 'Error...';
26 | }
27 |
28 | $conn->close();
29 | ?>
--------------------------------------------------------------------------------
/PHP&MYSQL - Copy/studenthome.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/PHP&MYSQL - Copy/removestudent.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | | '.$row['sid'].' | '; 64 | echo ''.$row['sname'].' | '; 65 | echo ''.$row['scon_no'].' | '; 66 | echo ''.$row['sadd'].' | '; 67 | 68 | echo "