hellow world!getConnection(); } function getConnection(){ if($this->con == false){ return($this->doConnect()); } return($this->con); } function doConnect(){ $this->con = pg_connect("dbname=lakanda294 user=lakanda294 password=kanda3052"); if($this->con == false){ print("ǡ١³ǤޤǤ"); exit; } return($this->con); } function doCloseA(){ if($this->con != false){ pg_close($this->con); $this-> false; } } } ?>