query( $query . " ORDER BY a.order_id DESC LIMIT " . getLimit( $current ) ) ; if ( $mysqli_query->num_rows > 0 ){ $status = '200' ; $list = [] ; while ( $row = $mysqli_query->fetch_assoc() ){ $row['created_at'] = resetDateFormat( $row['created_at'] ) ; $row['order_status'] = ( checkExists( $row['status'] ) != '' ? $row['status'] : '' ) ; $row['file'] = ( $row['file'] != '' ? PATH.'uploads/RmsPrepaidItem/b/'.$row['file'] : '' ) ; $list[] = $row ; } $data['list'] = $list ; } } require( $require_sub.'footer.php' ) ; ?>