"; } 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' => $row['referral_point_id'], 'cell' => array($count++, $links, $row['referral_point_name'], $row['city'],$row['hospital_name'],$row['address'],$row['contact_detail']) ); } commit(); $data['rows'][] = array( 'id' => $row['filterkey'], 'cell' => array('', "", "", '', '','', '', '', '', '', '', '', '','', '', '','', '', '','') ); // error_log(print_r($data, true)); echo json_encode($data); ?>