forked from GAjay/accounttrans
-
Notifications
You must be signed in to change notification settings - Fork 0
/
table.php
72 lines (71 loc) · 1.91 KB
/
table.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?PHP
include('configure/config.php');
?>
<head>
<style>
table {
width:100%;
}
table, th, td {
border-color: #0056ff;
box-shadow: 0px 0px 8px 3px black;
font-weight:bold;
}
th, td {
padding: 5px;
text-align: left;
}
table tr:nth-child(even) {
background-color: #eee;
}
table tr:nth-child(odd) {
background-color:#fff;
}
table th {
background-color: black;
color: white;
}
</style>
</head>
<body style="margin:40px;padding:10px;background-color: rgba(19, 46, 119, 0.85);">
<table>
<tr>
<th>G.R.No</th>
<th>Marka</th>
<th>Nag</th>
<th>particular</th>
<th>weight</th>
<th>freight</th>
<th>addedby</th>
<th>paid</th>
<th>dateofarrival</th>
<th>truckno</th>
<th>drivername</th>
<th>partyname</th>
<th>created_at</th>
<th>updated_at</th>
</tr>
<?php
$sql = ("SELECT * FROM `challan`");
$result = $db->query($sql) or die("Sql Error :" . $db->error);
while($row = mysqli_fetch_array($result)){
echo '<tr>
<td><input type="number" value="'.$row['challanNo'].'"></td>
<td><input type="number" value="'.$row['G.R.No'].'"></td>
<td><input type="number" value="'.$row['Marka'].'"></td>
<td><input type="number" value="'.$row['Nag'].'"></td>
<td><input type="number" value="'.$row['particular'].'"></td>
<td><input type="number" value="'.$row['weight'].'"></td>
<td><input type="number" value="'.$row['freight'].'"></td>
<td><input type="number" value="'.$row['addedby'].'"></td>
<td><input type="number" value="'.$row['paid'].'"></td>
<td><input type="number" value="'.$row['dateofarrival'].'"></td>
<td><input type="number" value="'.$row['truckno'].'"></td>
<td><input type="number" value="'.$row['partyname'].'"></td>
<td><input type="number" value="'.$row['created_at'].'"></td>
<td><input type="number" value="'.$row['updated_at'].'"></thd>
</tr>';
}
?>
</table><br><br>
</table>