📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chbluxuries.com
/
boot
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📁
css
-
0755
🗑️
🔒
📁
js
-
0755
🗑️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
error_log
151.82 KB
0644
🗑️
⬇️
✏️
🔒
Editing: displayfilter.php
<?php // Define pagination variables $itemsPerPage = 40; $page = isset($_GET['page']) ? $_GET['page'] : 1; $offset = ($page - 1) * $itemsPerPage; if(isset($_GET['filter'])){ $filt=$_GET['filter']; if($filt=="1"){ $sql = "SELECT all* from stocks WHERE status ='Yes' AND store='1' ORDER by name ASC LIMIT $offset, $itemsPerPage"; } if($filt=="2"){ $sql = "SELECT all* from stocks WHERE status ='Yes' AND store='1' ORDER by name DESC LIMIT $offset, $itemsPerPage"; } if($filt=="3"){ $sql = "SELECT all* from stocks WHERE status ='Yes' AND store='1' ORDER by s DESC LIMIT $offset, $itemsPerPage"; } if($filt=="4"){ $sql = "SELECT all* from stocks WHERE status ='Yes' AND store='1'ORDER by s ASC LIMIT $offset, $itemsPerPage"; } if($filt=="5"){ $sql = "SELECT all* from stocks WHERE status ='Yes' AND store='1' ORDER by retail_price ASC LIMIT $offset, $itemsPerPage"; } if($filt=="6"){ $sql = "SELECT all* from stocks WHERE status ='Yes' AND store='1' ORDER by retail_price DESC LIMIT $offset, $itemsPerPage"; } } else{ $sql = "SELECT all* from stocks WHERE status ='Yes' AND store='1' ORDER by group_id ASC LIMIT $offset, $itemsPerPage"; } ?>
💾 Save Changes