"; // } //if($hasExecuteAccess){ $delete_link = ""; // } // if($hasReadAccess){ $view_link = ""; // } $hyg_sample_id = $row['hyg_sample_id']; $sample_name = $row['sample_name']; $sample_description = $row['sample_description']; $space = "  "; $links = $view_link . $space . $edit_link . $space . $delete_link; $data['rows'][] = array( 'sample_id' => $row['sample_id'], 'cell' => array( $count ++, $sample_name, $sample_description, $links ) ); } echo json_encode($data); ?>