if(!$result){
    die("error");
  }else{
    echo"<form method=\"post\" action=\"$_SERVER[PHP_SELF]\">";
    echo"<select name=\"occurrence_id\">";