query( $query ) ; if ( $mysqli_query->num_rows > 0 ){ $status = '200' ; $row = $mysqli_query->fetch_assoc() ; $file = '' ; if ( $row['file'] != '' ){ if ( $row['file_type'] == 'pdf' || $row['file_type'] == 'xls' || $row['file_type'] == 'xlsx' || $row['file_type'] == 'doc' || $row['file_type'] == 'docx' ){ $file = PATH.'uploads/Form/'.$row['file'] ; }else{ $file = PATH.'uploads/Form/b/'.$row['file'] ; } } $row['id'] = dataFilter( $row['form_id'] ) ; $row['title'] = dataFilter( $row['title'] ) ; $row['file'] = $file ; $row['created_at'] = dataFilter( $row['created_at'] ) ; $data['list'] = $row ; } } require( $require_sub.'footer.php' ) ; ?>