-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
36 lines (34 loc) · 1.12 KB
/
index.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
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<?php
require 'Includes/connector.php';
$available=mysqli_query($qpcon,"SELECT name FROM reg_qpaper") or die("reg command didnt work");
?>
<html>
<head>
<meta charset="UTF-8">
<?php require 'Includes/bsplugin.php';?>
<title>Qbank2</title>
</head>
<body>
<?php
include 'Includes/header.php';
?>
<form action="starttest.php" method="get">
<input name="testname2" id="tname" type="text" value="Name of Test"/>
<select name="testname">
<?php for($i= mysqli_num_rows($available);$i>0;$i--)
{
echo '<option>'.mysqli_fetch_assoc($available)['name'].'</option>';
}?>
</select>
<input type="submit" value="Start Test"/><br>
<br>
<a href="qpapernew.html">Click here</a> to create new question paper!
</form>
</body>
</html>