-
Notifications
You must be signed in to change notification settings - Fork 0
/
sale.html
72 lines (65 loc) · 1.96 KB
/
sale.html
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
<html>
<head>
<title>sales</title
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false);
function hideURLbar(){ window.scrollTo(0,1); } </script>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all">
<link href="css/font-awesome.min.css" rel="stylesheet" type="text/css" media="all">
<!-- //css files -->
<!-- online-fonts -->
<link href='//fonts.googleapis.com/css?family=Lato:400,100,100italic,300,300italic,400italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'><link href='//fonts.googleapis.com/css?family=Raleway+Dots' rel='stylesheet' type='text/css'>
</head>
<body style="background-color:#ffffff">
<!--header-->
<div class="header-w3l">
<h1>Admin Dashboard</h1>
<h1 style="color:#000000;"></h1>
</div>
<div style="width: 100% ">
<table cellspacing='0'> <!-- cellspacing='0' is important, must stay -->
<!-- Table Header -->
<thead>
<tr>
<th>customer-name</th>
<th>product-id</th>
<th>product-name</th>
<th>product-quantity</th>
<th>product-prize</th>
<th>total</th>
<!--<th>Land-acres</th>
<th>Land-status</th>
<th>farmer-account</th>-->
</tr>
</thead>
<tbody>
<?php
require"connection.php";
$res = array();
$sqlDetail = " SELECT FROM tb_farmer WHERE Status = 'Y' ";
$result = mysqli_query($con,$sqlDetail);
if($result){
$f = mysqli_num_rows($result);
for ($i=0; $i < $f ; $i++) {
$row = mysqli_fetch_row($result);
if ($i % 2 == 0) {
echo "<tr class = 'even'>";
}
else{
echo "<tr>";
}
echo "<td>$row[1] </td>
<td>$row[2] </td>
<td>$row[3] </td>
<td>$row[4] </td>
<td>$row[5] </td>
</tr>";
}
}else{
echo"Failed".mysqli_error($con);
}
?>
</table>
</div>