note 34506 added to function.ibase-blob-echo
| From: | php-general at lists dot php dot net | Date: | Tue, 29 Jul 2003 15:14:00 +0000 |
| Subject: | note 34506 added to function.ibase-blob-echo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-52939@lists.php.net to get a copy of this message | ||
sacar texto de un blob:
$lnk = ibase_pconnect($db, $usuario, $clave, $charset, $buffers, $SQLdialect, $role); // conexion
$Q = ibase_query($lnk, 'select PERSONA, OPINION from TABLE'); // OPINION -> blob
subtype text
while ($R=ibase_fetch_object($Q)){
echo "$R->PERSONA<br/>\n";
if ($R->BLOB){
echo "Opina: ";
ibase_blob_echo($R->OPINION);
}else
echo "No opina";
}
ibase_free_result($Q);
----------------------
sacar una foto de un blob:
foto.php:
---
<?php
$lnk = ibase_pconnect($db, $usuario, $clave, $charset, $buffers, $SQLdialect, $role); // conexion
$Q = ibase_query($lnk,"select FOTO from fotos where Codigo = $CODIGO "); // seleccionar
la foto
if ($R = ibase_fetch_object($Q)){ // existe la foto?
if ($R->PE_FOTO)
ibase_blob_echo($R->PE_FOTO); // saca la foto
}
ibase_free_result($Q);
?>
---
llamar con
<img src="foto.php?CODIGO=1" border=0 ... >
----
Manual Page -- http://www.php.net/manual/en/function.ibase-blob-echo.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34506
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34506&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34506&report=yes