Location: PHPKode > scripts > PHPDBX > phpdbxa1/phpdbx/fbqueries.php
<?
	include_once('xqueries.php');

	class TFBQuery extends TXQuery
	{
		
		var $BLR;
		
		function TFBQuery()
		{/*
			$this -> SQL = '';
			$this -> Row = 0;
			$this -> Handle = '';
			$this -> ObjectField = False;
			*/
		}

		function Execute()
		{
			$this->BLR = ibase_prepare($this->DataBase->Handle, $this->SQL);
			$this->Cursor = ibase_execute($this->BLR);
            //			$this->Col = ibase_num_fields($this->Handle);
            //			$this->Eof = FALSE;
            TXQuery::Execute();
		}

		function Close()
		{
			ibase_free_result($this->Cursor);
		 	ibase_free_query($this->BLR);
		 	$this->BLR = 0;
		 	TXQuery::Close();
		}

		function Next()
        {
            return ($this->Field = ibase_fetch_row($this->Cursor));
        }
		
		function GetBLOB($FieldName)
		{
			$Field = ibase_fetch_object($this->Cursor);
			$blob_data = ibase_blob_info( $Field->$FieldName);
			$blob_hndl = ibase_blob_open( $Field->$FieldName);
			return  ibase_blob_get($blob_hndl, $blob_data[0]);
		}
		
	}
	
?>
Return current item: PHPDBX