fetchValue(" select BODY_HTML from HIST_CONTACTS where ID_BILLING_USERS = :id_user and ID_BILLING_NUMBERS = :nr order by ID DESC limit 1 ", [ ':id_user' => $idUser, ':nr' => $nr, ]); if (empty($body)) throw new Exception("Brak faktury"); die($body); } catch (Exception $e) { UI::gora(); Theme::top(); echo UI::h('div', [ 'class' => "container" ], [ UI::h('div', [ 'class' => 'alert alert-danger' ], $e->getMessage()), ]); UI::dol(); } } }