Results 1 to 7 of 7
Thread: PHP Interbase/Firebird BLOB
Hybrid View
-
19th June 2006 13:46 #1
PHP Interbase/Firebird BLOB
,
, .
.
image.php, :
<?
include('connection.php');
if(!isset($_GET['id']) || $_GET['id']=='' || $_GET['id']=='false'){
$statement='select dValue from DEF_PICTURES where id=1';
$pointer='DVALUE';
}
else {
$id=$_GET['id'];
$statement="select poster from films where films.id=$id";
$pointer='POSTER';
}
header('Content-Type: image/jpeg');
$result=ibase_query($statement);
$data=ibase_fetch_object($result);
$blob_data = ibase_blob_info($data->$pointer);
$blob_hndl = ibase_blob_open($data->$pointer);
if(!$blob_hndl){
header("Location: image.php?id=false");
exit;
}
else {
echo $data= ibase_blob_get($blob_hndl, $blob_data[0]);
}
ibase_blob_close($blob_hndl);
?>
- id, , ( ), . html <img src=image.php?id=23> .
-, , . ? ?
,
AirfanI7-4770K@GA-Z97X-UD3H + CM Hyper 212 Evo + CM N500 + 4 x 4GB Geil Enhance Corca 1600MHz + Sapphire HD 5850 (Game edition)
-
19th June 2006 16:05 #2
, .
... , ?comp: GB B85M-D3H /1150 | Pentium G3420 3.2GHZ/3M/1150 | 2 X 4 GB DDR3 Kingston HyperX 1600 | 500GB WD BLUE SATA2 | Asus nVidia 9600GT | LG 8.5GB DVDRW Black GSA-4163-B retail | FOXCONN 3GTH002//FSP 400W PFC | Phillips 190X6FB | Logitech X-530
-
19th June 2006 17:17 #3,
Originally Posted by Airfan
Firebird/Interbase , . . ?
: Sky IS the limit.....
Last edited by Skydive; 19th June 2006 at 17:26.
-
19th June 2006 19:01 #4
,
Athlonio - , , , , .
Skydive - -, , . The sky IS NOT the limit, , .......
. -
I7-4770K@GA-Z97X-UD3H + CM Hyper 212 Evo + CM N500 + 4 x 4GB Geil Enhance Corca 1600MHz + Sapphire HD 5850 (Game edition)
-
20th June 2006 12:48 #5
-
20th June 2006 14:00 #6
Originally Posted by Pa3KaTaH
!
! $statement='select dValue from DEF_PICTURES where id=1'; $statement="select dValue from DEF_PICTURES where id=1";, .. ! , .
!I7-4770K@GA-Z97X-UD3H + CM Hyper 212 Evo + CM N500 + 4 x 4GB Geil Enhance Corca 1600MHz + Sapphire HD 5850 (Game edition)
-
20th June 2006 14:02 #7




Reply With Quote

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in