-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstate.php
More file actions
39 lines (31 loc) · 757 Bytes
/
state.php
File metadata and controls
39 lines (31 loc) · 757 Bytes
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
<?php
$db = mysql_connect("localhost", "root", "") or die("could not connect:".mysql_error());
mysql_select_db("ims", $db);
$idno = "";
$foliono = "";
$serial = "";
$intdate = "";
$warrenty = "";
$type = "";
$make = "";
$model = "";
$yrmanu = "";
$state = "";
$discpt = "";
if(!empty($_GET(['folio']))){
$foliono = $_GET['foliono'];
$query2 = "SELECT * FROM `lab` WHERE foliono='$foliono'";
$result2 = mysql_query($query2, $db);
if(result2){
header('location: lab2.php');
}
}
/* $idno = trim($_GET['idno']);
$selectoption = $_POST['taskoption'];
$query1 = "UPDATE `lab` SET `state` = '$selectoption' WHERE `idno` = '$idno' ";
$result1 = mysql_query($query1, $db);
if($result1){
header('location: lab2.php');
} */
mysql_close($db);
?>