Research Projects

Projects Details


"; $headers = $responseData['data'][0]['data'][0]['headers']; echo ""; foreach ($headers as $header) { echo "{$header}"; } echo ""; foreach ($paginatedRows as $row) { echo ""; foreach ($headers as $header) { if ($header == 'DoI/URL' && !empty($row[$header])) { $url = $row[$header]; if (preg_match('/^(https?:\/\/)/', $url)) { // Check if the URL starts with http:// or https:// echo "" . htmlspecialchars($url, ENT_QUOTES, 'UTF-8') . ""; } else { echo "" . htmlspecialchars($url, ENT_QUOTES, 'UTF-8') . ""; // Display the value as plain text } } else { echo "" . (!empty($row[$header]) ? htmlspecialchars($row[$header], ENT_QUOTES, 'UTF-8') : '-') . ""; } } echo ""; } echo ""; echo ''; ?>