rs= mysql_query($query); if (! $this->rs ){ //echo ""; die("Error :: " . mysql_errno() . ' : ' . mysql_error() ); } return $this->rs; } function GetLstID(){ return mysql_insert_id(); } function NumField(){ return mysql_num_fields($this->rs); } function GetRowSelected(){ return mysql_num_rows($this->rs); } function GetResult(){ if($this->rs){ return mysql_fetch_array($this->rs); } return 0; } function GetAffected(){ return mysql_affected_rows(); } function DestroyDb(){ return mysql_close(); } } ?>