<?php
require_once('class.Event_Handler.php');

class handler_View extends Event_Handler
{
   private $handle;

   function __construct($event_handle){
      $this->handle = $event_handle;
   }

   function handled_event(){
      echo "Obsuguj zdarzenie $this->handle. <BR>
      Naprawd!<BR><BR>dane rekordy to: <BR> <BR>";

      $id = parent::dbconn();
      $result = pg_query($id, "SELECT * FROM uzytkownik");
      while($query_data = pg_fetch_row($result)) {
         echo "'",$query_data[1],"' jest ",$query_data[4],"<br>";
      }
   }
}
?>