Advertisement
Guest User

Untitled

a guest
Jan 27th, 2020
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. public function checkIfQuestionnaireExist($questionnaireId)
  2. {
  3. $sqlGetQuestionnaire = "
  4. SELECT
  5. *
  6. FROM
  7. `syskonf`.`modul_kwestionariusz`
  8. WHERE
  9. kwestionariusz_id = '" . Validate::form2db($questionnaireId) . "'
  10. AND
  11. konferencja_textid = '" . Validate::form2db($this->conferenceTextId) . "'";
  12.  
  13. $this->db->Execute($sqlGetQuestionnaire);
  14. if ($this->db->affected_rows() > 0) {
  15. return true;
  16. }
  17. return false;
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement