-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlab_add2.php
More file actions
32 lines (25 loc) · 731 Bytes
/
lab_add2.php
File metadata and controls
32 lines (25 loc) · 731 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
<?php
include('db_conn.php');
?>
<?php
$idno2 = $_POST['field1'];
$idno3 = "css/lb";
$idno = $idno3 + $idno2;
$serial = $_POST['field2'];
$intdate = $_POST['field3'];
$warrenty = $_POST['field4'];
$type = $_POST['field5'];
$make = $_POST['field6'];
$model = $_POST['field7'];
$yrmanuf = $_POST['field8'];
$a = $_POST['field9'];
$b = $_POST['field10'];
$c = $_POST['field11'];
$d = $_POST['field12'];
$query1 = "INSERT INTO lab (idno,serial,intdate,warrenty,type,make,model,yrmanu,type1,type2,type3,type4) VALUES('$idno','$serial','$intdate,','$warrenty','$type','$make','$model','$yrmanuf','$a','$b','$c','$d')";
$result1 = mysql_query($query1);
if($result1)
{
header('location:lab_add.php');
}
?>