"; } if ($hasWriteAccess) { $edit_link = ""; } if ($hasExecuteAccess) { $delete_link = ""; } $space = "   "; $links = $assign_link . $space . $view_link . $space . $edit_link . $space . $delete_link; $data ['rows'] [] = array ( 'id' => $row1 ['checklist_id'], 'cell' => array ( $links, $count ++, $row3['ambulance_name'], $firstaid, $oxygen, $bed, $pillow, $siren, ) ); } commit(); $data['rows'][] = array( 'id' => $row['filterkey'], 'cell' => array('', "", "", '', '','', '', '', '', '', '', '', '','', '', '','', '', '','') ); echo json_encode($data); ?>