topical media & game development

talk show tell print

professional-php-10-class.Handler-View.php / php



  <?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 "The event, this->handle, is now handled. <BR> 
        It is, I promise!<BR><BR>Your records are as follows: <BR> <BR>";
      
        id = parent::dbconn();
        result = pg_query(id, "SELECT * FROM user");
        while(query_data = pg_fetch_row(result)) {
           echo "'",query_data[1],"' is a ",query_data[4],"<br>";
        }
     }
  }
  ?>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.