query( $query . " ".$query_sortable." LIMIT " . getLimit( $current ) ) ; if ( $mysqli_query->num_rows > 0 ){ $status = '200' ; $list = [] ; while ( $row = $mysqli_query->fetch_assoc() ){ $row['date'] = resetDateFormat( $row['created_at'] ) ; $row['time'] = resetTimeFormat( $row['created_at'] ) ; $row['file'] = ( $row['file'] != '' ? PATH.'uploads/RequestGallery/b/'.$row['file'] : '' ) ; $list[] = $row ; } $data['list'] = $list ; } } require( $require_sub.'footer.php' ) ; ?>