$Rs = safe_r_sql($MyQuery); if (safe_num_rows($Rs) == 1) { $r = safe_fetch($Rs); $NumEnd = $r->TtNumEnds; $NumDistances = $r->TtNumDist; } $FillWithArrows = false; if (isset($_REQUEST["ScoreFilled"]) && $_REQUEST["ScoreFilled"] == 1) { $FillWithArrows = true; } $pdf->FillWithArrows = $FillWithArrows; if (!(isset($_REQUEST["ScoreHeader"]) && $_REQUEST["ScoreHeader"] == 1)) { $pdf->HideHeader(); } if (!(isset($_REQUEST["ScoreLogos"]) && $_REQUEST["ScoreLogos"] == 1)) { $pdf->HideLogo(); } if (isset($_REQUEST["ScoreDraw"]) && $_REQUEST["ScoreDraw"] == "Data") { $pdf->NoDrawing(); } if (isset($_REQUEST["ScoreDraw"]) && $_REQUEST["ScoreDraw"] == "CompleteTotals") { $pdf->PrintTotalColumns(); } if (!empty($_REQUEST["ScoreBarcode"])) { $pdf->PrintBarcode = true; } if (isset($_REQUEST["ScoreDraw"]) && $_REQUEST['ScoreDraw'] == "Draw") { $pdf->AddPage(); for ($i = 1; $i <= $NumDistances; $i++) { if ($i == 5) { $pdf->AddPage();