Connection failed: " . $conn . ""); } $seglingId = $_GET['segling']; if (!is_numeric($seglingId)) $seglingId = 0; $klassId = str_replace("'", "", $_GET['klass']); $seglingNamnResult = odbc_exec($conn, "select seglingNamn from resuto07..seglingWebmap where seglingid=${seglingId}"); $arrangorResult = odbc_exec($conn, "select Arrangor from resuto07..segling where seglingid=${seglingId}"); $resultatResult = odbc_exec($conn, "exec resuto07..KlassResultat ${seglingId} ,'${klassId}'"); $rundningResult = odbc_exec($conn, "exec resuto07..KlassRundningar ${seglingId} ,'${klassId}'"); $placeringResult = odbc_exec($conn, "exec resuto07..KlassRundningarResultat ${seglingId} ,'${klassId}'"); $banInfoResult = odbc_exec($conn, "exec resuto07..BanInfo ${seglingId} ,'${klassId}'"); if (!$seglingNamnResult || !$resultatResult || !$rundningResult || !$placeringResult) { exit("Failed SQL-query."); } $seglingNamn = trim(odbc_result($seglingNamnResult, 'seglingNamn')); $arrangor = trim(odbc_result($arrangorResult, 'Arrangor')); $banId = trim(odbc_result($banInfoResult, 'BanID')); $antalDeltagare = trim(odbc_result($banInfoResult, 'AntalDeltagare')); $banLangd = trim(odbc_result($banInfoResult, 'Banlangd')); $startTid = trim(odbc_result($banInfoResult, 'Starttid')); $flagga = trim(odbc_result($banInfoResult, 'Flagga')); $showHeader = true; if ($banLangd == '0.0') $showHeader = false; ?> Class Results Overview for <?php echo $seglingNamn; ?>

Class Results Overview for
Organizing authority:
Class: Distance: nautical miles Starting hour:
Course: Number of yachts: Flag:

Class:

${rundningsNamn}"; } ?> "; //echo ""; echo ""; // Loop through results array for($i = 1; $i <= $rundningar; $i++) { $rpoint = $rmap[$i]; if (array_key_exists($rappNr, $arr) && array_key_exists($rpoint, $arr[$rappNr])) $v = $arr[$rappNr][$rpoint]; else $v = '-'; echo ""; } $placering = $row['placering']; if ($placering == '') $placering = '-'; $kommentar = $row['kommentar']; if ($kommentar == '') $kommentar = ' '; echo ""; echo ""; echo "\r\n"; $parity = !$parity; } ?>
Sail No. Yacht name RNo. Skipper/team Rate Final result Comments
${segelBokstav}${segelNummer}${bat}${rappNr}${skeppare}${klubb}${batTyp}${matTal}${v}${placering}${kommentar}