-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactivitity.php
97 lines (83 loc) · 3.92 KB
/
activitity.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?php
include("../../db.php");
?>
<div class="row" style="padding-top: 10vh;">
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-6">
<div class="card card-stats">
<div class="card-header card-header-warning card-header-icon">
<div class="card-icon">
<i class="material-icons">content_copy</i>
</div>
<p class="card-category">Total users</p>
<h3 class="card-title">
<?php $query = "SELECT user_id FROM user_info";
$result = mysqli_query($con, $query);
if ($result)
{
// it return number of rows in the table.
$row = mysqli_num_rows($result);
printf(" " . $row);
// close the result.
} ?>
</h3>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-6">
<div class="card card-stats">
<div class="card-header card-header-success card-header-icon">
<div class="card-icon">
<i class="material-icons">store</i>
</div>
<p class="card-category">Total Catagories</p>
<h3 class="card-title"> <?php $query = "SELECT cat_id FROM categories";
$result = mysqli_query($con, $query);
if ($result)
{
// it return number of rows in the table.
$row = mysqli_num_rows($result);
printf(" " . $row);
// close the result.
} ?></h3>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-6">
<div class="card card-stats">
<div class="card-header card-header-danger card-header-icon">
<div class="card-icon">
<i class="material-icons">info_outline</i>
</div>
<p class="card-category">Total sellers</p>
<h3 class="card-title"><?php $query = "SELECT user_id FROM user_info";
$result = mysqli_query($con, $query);
if ($result)
{
// it return number of rows in the table.
$row = mysqli_num_rows($result);
printf(" " . $row);
// close the result.
} ?></h3>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-6 col-md-6 col-sm-6">
<div class="card card-stats">
<div class="card-header card-header-info card-header-icon">
<div class="card-icon">
<i class="fa fa-twitter"></i>
</div>
<p class="card-category">Total Orders</p>
<h3 class="card-title"><?php $query = "SELECT order_id FROM orders_info";
$result = mysqli_query($con, $query);
if ($result)
{
// it return number of rows in the table.
$row = mysqli_num_rows($result);
printf(" " . $row);
// close the result.
} ?></h3>
</div>
</div>
</div>
</div>