-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgotoPage2.php
37 lines (35 loc) · 1020 Bytes
/
gotoPage2.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
<?php
require 'redirect.php';
/*
$dbName = "timetable";
$dbServer = "localhost";
$dbUser = "root";
$dbPassword = "";
$con = mysqli_connect($dbServer,$dbUser,$dbPassword,$dbName);
mysqli_select_db($con,$dbName);
$programme = $_POST['programme'];
if($programme == 1){
$programme = "Bachelor In Technology";
}elseif($programme == 2){
$programme = "Bachelor In Pharmacy";
}elseif($programme == 3){
$programme = "MCA";
}elseif($programme == 4){
$programme = "PolyTechnic";
}elseif($programme == 5){
$programme = "Master In Technology";
}
if(isset($_POST['submit']))
{
$queryInsert = "INSERT INTO gotopage2(
programme
)
VALUES (
'$programme'
);";
mysqli_query($con,$queryInsert) or die(mysqli_error($con));
}
mysqli_close($con);
*/
redirect_btech();
?>