-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path10college.php
87 lines (82 loc) · 2.76 KB
/
10college.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<body bgcolor="orange">
<?php
$con = mysqli_connect('127.0.0.1','root','');
if(!$con)
{
echo 'Not Connected to server';
}
if(!mysqli_select_db($con,'punestudents'))
{
echo 'Database not selected';
}
if(isset($_POST["t1"])){
$name = $_POST["t1"];
}
if(isset($_POST["t2"])){
$course = $_POST["t2"];
}
if(isset($_POST["t3"])){
$fee = $_POST["t3"];
}
if(isset($_POST["t4"])){
$campus = $_POST["t4"];
}
if(isset($_POST["t5"])){
$description = $_POST["t5"];
}
if(isset($_POST["t6"])){
$eligibility = $_POST["t6"];
}
if(isset($_POST["t7"])){
$email = $_POST["t7"];
}
if(isset($_POST["t8"])){
$phone = $_POST["t8"];
}
if(isset($_POST["t9"])){
$address = $_POST["t9"];
}
if(isset($_POST["t10"])){
$approval = $_POST["t10"];
}
if(isset($_POST["t11"])){
$company1 = $_POST["t11"];
}
if(isset($_POST["t12"])){
$company2 = $_POST["t12"];
}
if(isset($_POST["t13"])){
$company3 = $_POST["t13"];
}
if(isset($_POST["t14"])){
$company4 = $_POST["t14"];
}
if(isset($_POST["t15"])){
$company5 = $_POST["t15"];
}
if(isset($_POST["t16"])){
$collegerank = $_POST["t16"];
}
if(isset($_POST["t17"])){
$placement = $_POST["t17"];
}
if(isset($_POST["t18"])){
$lowrange = $_POST["t18"];
}
if(isset($_POST["t19"])){
$highrange = $_POST["t19"];
}
if(isset($_POST["t20"])){
$stream = $_POST["t20"];
}
$sql = "INSERT INTO collegedetails VALUES('$name','$course','$fee','$campus','$description','$eligibility','$email','$phone','$address','$approval','$company1','$company2','$company3','$company4','$company5','$collegerank','$placement','$lowrange','$highrange','$stream')";
if(!mysqli_query($con,$sql))
{
echo 'Not Inserted.';
}
else
{
echo 'Inserted successfully.';
}
?>
</body>