"; } if($hasWriteAccess) { $edit_link=""; } if($hasExecuteAccess) { $delete_link=""; } $space="   "; $links = $assign_link.$space.$view_link.$space.$edit_link.$space.$delete_link; //$links="
".$links."
"; $data['rows'][] = array( 'id' => $row['id'], 'cell' => array($count++, $links,$row['patient_name'], $row['contact_no'], $row['email_id'], $row['appointment_date'],getFieldFromTable('address', 'ohc_type', 'ohc_type_id', $row['appointment_center']),$row['appointment_type'],$row['message'],$row['appointment_time'],$row['app_status'],) ); } echo json_encode($data); ?>