This repository was archived by the owner on Nov 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUpdateEvidence.php
44 lines (43 loc) · 1.82 KB
/
UpdateEvidence.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
<?php
include('session.php');
include('SQLFunctions.php');
$table = 'evidenceType';
$q = $_POST["q"];
$title = "SVBX - Update Evidence Type";
$Loc = "SELECT EviTypeName FROM $table WHERE EviTypeID = ".$q;
include('filestart.php');
$link = f_sqlConnect();
if($role <= 20) {
header('location: unauthorised.php');
}
?>
<div class="container page-header">
<h1 class="page-title">Update Evidence Type</h1>
</div>
<?php
if($stmt = $link->prepare($Loc)) {
$stmt->execute();
$stmt->bind_result($EviType);
while ($stmt->fetch()) {
echo "
<div class='container main-content'>
<FORM action='UpdateEvidenceCommit.php' method='POST'>
<input type='hidden' name='EviTypeID' value='".$q."'>
<table class='table'>
<tr class='usertr'>
<th class='userth'>Evidence Type Name:</th>
<td class='usertd'>
<input type='text' name='EviType' maxlength='50' required value='".$EviType."'/>
</td>
</tr>
</table>
<input type='submit' value='submit' class='btn btn-primary btn-lg'/>
<input type='reset' value='reset' class='btn btn-primary btn-lg' /><br />
</FORM>
</div>";
}
} else {
echo '<br>Unable to connect';
exit();
}
include('fileend.php') ?>