-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaddset.php
More file actions
25 lines (23 loc) · 1.12 KB
/
addset.php
File metadata and controls
25 lines (23 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
session_start();
include("./teacher_nav.php");
include("database.php");
$testid = $_REQUEST['testid'];
$setname = $_REQUEST['setname'];
$sql2 = mysqli_query($con,"insert into quizset (test_id,set_name,total_que) values ($testid,'$setname','10')") or die (mysqli_error($con));
if($sql2)
{
echo "<script>";
echo "var x=window.confirm('New Set ADDED successfully');
if (x)
{
window.location='teacher_add_quiz_set.php?testid=$testid';
}
else
{
window.location='teacher_add_quiz_set.php?testid=$testid';
}
";
echo "</script>";
}
?>