File tree 4 files changed +13
-6
lines changed
4 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 87
87
<tr>
88
88
<th style="width:40%;">Product</th>
89
89
<th style="width:20%;">Rate</th>
90
- <th style="width:20 %;">Available Quantity</th>
90
+ <th style="width:10 %;">Available Quantity</th>
91
91
<th style="width:15%;">Quantity</th>
92
- <th style="width:15 %;">Total</th>
92
+ <th style="width:25 %;">Total</th>
93
93
<th style="width:10%;"></th>
94
94
</tr>
95
95
</thead>
Original file line number Diff line number Diff line change 8
8
9
9
$ userName = $ _POST ['userName ' ];
10
10
$ upassword = md5 ($ _POST ['upassword ' ]);
11
+ $ uemail = $ _POST ['uemail ' ];
11
12
12
13
13
- $ sql = "INSERT INTO users (username, password)
14
- VALUES (' $ userName', ' $ upassword') " ;
15
-
14
+ $ sql = "INSERT INTO users (username, password,email)
15
+ VALUES (' $ userName', ' $ upassword' , ' $ uemail') " ;
16
16
if ($ connect ->query ($ sql ) === TRUE ) {
17
17
$ valid ['success ' ] = true ;
18
18
$ valid ['messages ' ] = "Successfully Added " ;
Original file line number Diff line number Diff line change 9
9
brands.brand_name, categories.categories_name FROM product
10
10
INNER JOIN brands ON product.brand_id = brands.brand_id
11
11
INNER JOIN categories ON product.categories_id = categories.categories_id
12
- WHERE product.status = 1 " ;
12
+ WHERE product.status = 1 AND product.quantity>0 " ;
13
13
14
14
$ result = $ connect ->query ($ sql );
15
15
Original file line number Diff line number Diff line change 70
70
</div>
71
71
</div> <!-- /form-group-->
72
72
73
+ <div class="form-group">
74
+ <label for="uemail" class="col-sm-3 control-label">Email: </label>
75
+
76
+ <div class="col-sm-8">
77
+ <input type="email" class="form-control" id="uemail" placeholder="Email" name="uemail" autocomplete="off">
78
+ </div>
79
+ </div> <!-- /form-group-->
73
80
74
81
</div> <!-- /modal-body -->
75
82
You can’t perform that action at this time.
0 commit comments