Re: Php, Blob, Oracle

From: Date: Thu, 27 Feb 2003 16:15:16 +0000
Subject: Re: Php, Blob, Oracle
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-137413@lists.php.net to get a copy of this message
On Thu, Feb 27, 2003 at 05:51:01PM +0200, M.ALPER KARASAHIN wrote: > > Hi, > > How can i display a blob column that contins a "MS word" object. > OR > How can i display a blob column that contins a bitmap object. > > function foo() > { > $this->statement = OCIParse($this->db_con_id, > "SELECT blobcolumn > FROM XXXXXX "); > if (!$this->statement) { > $oerr = OCIError($this->statement); > echo "Fetch Code 1:".$oerr["message"]; > exit; > }else{ > OCIExecute($this->statement); > } > > $displaypage=" > <table>"; > while (OCIFetchInto($this->statement,$row,OCI_ASSOC)){ while (OCIFetchInto($this->statement,$row,OCI_ASSOC|OCI_RETURN_LOBS)){ > $displaypage =$displaypage. > " > <tr> > <td align=\"center\" > class=\"td_yazi\">".$row["blobcolumn"]."</td>"; <td align=\"center\" class=\"td_yazi\">".$row["BLOBCOLUMN"]."</td>"; > > }; > $displaypage=" > <\table>"; > return $displaypage; > } -- Thies C. Arntzen - Looking for all sorts of freelance work - just ask.. http://www.amazon.de/exec/obidos/wishlist/AB9DY62QWDSZ

« previous php.general (#137413) next »